tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi everyone,
I have a document that works great and has a macro that makes it full screen. (See Below)
however I found on opening other Excel documents the Full screen comands below stayed, so I've been switching full screen off when the Document closes (see below)
My problem is this.
If I run the full screen macro, then close the document without switching it off, when I reopen it it opens exactly as i want even when macros are disabled.
But turning it off means when it opens without macros it looks wrong (not full screen etc.)
Is there a way i can say on all other workbook don't do this?
any ideas would help as i'm flexible on how i deal with this?
Thanks
Tony
my codes:
I have a document that works great and has a macro that makes it full screen. (See Below)
however I found on opening other Excel documents the Full screen comands below stayed, so I've been switching full screen off when the Document closes (see below)
My problem is this.
If I run the full screen macro, then close the document without switching it off, when I reopen it it opens exactly as i want even when macros are disabled.
But turning it off means when it opens without macros it looks wrong (not full screen etc.)
Is there a way i can say on all other workbook don't do this?
any ideas would help as i'm flexible on how i deal with this?
Thanks
Tony
my codes:
Code:
Sub Full_SCreen()
Application.DisplayFullScreen = True
Application.DisplayFormulaBar = False
Application.ActiveWindow.DisplayWorkbookTabs = False
Application.ActiveWindow.DisplayHeadings = False
Application.ActiveWindow.DisplayGridlines = False
End Sub
Sub Full_Screen_Exit()
Application.DisplayFullScreen = False
Application.DisplayFormulaBar = True
Application.ActiveWindow.DisplayWorkbookTabs = True
Application.ActiveWindow.DisplayHeadings = True
Application.ActiveWindow.DisplayGridlines = True
End Sub