Toolbars, help needed

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I would like to have a workbook that opens in full screen, but only for this
particular workbook and not in other Excel workbooks.
 
Brian

You could use the workbook_Open() and close() events as in the code below.
This would switch on full screen when opening and restore when closing. To
enter the code, right-click the excel icon at the top left of the workbook
and select 'View code...'. Then paste the code in resultant window, close
the VBE and save the workbook

Private Sub Workbook_Open()
Application.DisplayFullScreen = True
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFullScreen = False
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
Thank you Nick Worked Great


Nick Hodge said:
Brian

You could use the workbook_Open() and close() events as in the code below.
This would switch on full screen when opening and restore when closing.
To enter the code, right-click the excel icon at the top left of the
workbook and select 'View code...'. Then paste the code in resultant
window, close the VBE and save the workbook

Private Sub Workbook_Open()
Application.DisplayFullScreen = True
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFullScreen = False
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top