DisplayFullScreen Application Property in VBA is used to display Excel screen in full screen mode and hides the application title bar. It has Boolean value either True or False. When the value is true the Excel screen in full screen mode. Please find the syntax and examples in the following chapter.
DisplayFullScreen Application Property in VBA is used to
VBA DisplayFullScreen Application Property – Syntax
Here syntax for DisplayFullScreen Property of application object in VBA.
Application. DisplayFullScreen
Where DisplayFullScreen as String.
In the above syntax Application represents object and ‘DisplayFullScreen’ is the Property of Application object.
VBA DisplayFullScreen Application Property: Example 1
Please find the below example for ‘DisplayFullScreen’ Property of application object in excel VBA. The below example maximizes the Excel screen.
Sub Appl_Display_FulScrn_Ex1() 'DisplayFullScreen is the property of application object Application.DisplayFullScreen = True End Sub
VBA DisplayFullScreen Application Property: Example 2
Please find the below example for ‘DisplayFullScreen’ Property of application object in excel VBA. If the Excel screen is full screen mode, then the below example minimizes or normal Excel screen.
Sub Appl_Display_FulScrn_Ex2() 'DisplayFullScreen is the property of application object Application.DisplayFullScreen = False End Sub
VBA DisplayFullScreen Application Property – Instructions
Please follow the below steps to execute the VBA code to save the excel file.
Step 1: Open any existing Excel Application.
Step 2: Press Alt+F11 – This will open the VBA editor window.
Step 3: Insert a code module from then insert menu.
Step 4: Copy the above code and paste in the code module which have inserted in the above step.
Step 5: Now press F5 to execute the above code.
Step 6: Observe the Excel screen windows by running above two macros.