ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Resetting Screen to Full (https://www.excelbanter.com/excel-programming/281602-re-resetting-screen-full.html)

Phobos

Resetting Screen to Full
 
You need to set up a variable to hold the setting on startup:

sub MySub()

Dim isFullScreen as boolean
isFullScreen = Application.DisplayFullScreen

Application.DisplayFullScreen = True


'*******************
'CODE GOES HERE
'*******************

Application.DisplayFullScreen = isFullScreen

End Sub



P



"Phil Hageman" wrote in message
...
I have an Auto_Open() sub that sets screen size to full
with the following:

Application.DisplayFullScreen = True

When the user exits the workbook, how do I reset full
screen to False?

Thanks,
Phil




Phobos

Resetting Screen to Full
 
Ignore me, I'm bonkers!!

P





All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com