Excel

Maximize Excel When Workbook is Opened

Ease of Use

Easy

Version tested with

2000 

Submitted by:

lucas

Description:

The Excel application is maximized when you open this workbook. 

Discussion:

For sake of appearance and/or visablility of crucial data, it is often important that a workbook be maximized. This short, one line code added to the workbook open procedure will assure that happening. 

Code:

instructions for use

			

'Place this code in the "ThisWorkbook" module Option Explicit Private Sub Workbook_Open() Application.WindowState = xlMaximized End Sub

How to use:

  1. From Excel go to Tools-Macros-Visual Basic Editor
  2. In the Project Explorer, click on the ThisWorkbook object
  3. Paste the code above into the code pane
  4. Close the Visual Basic Editor (File-Close)
  5. Save your file and close it.
 

Test the code:

  1. Open Excel, resize the application to smaller than full screen and save it.
  2. Close Excel and open the saved file from above.
  3. It will open and maximize.
 

Sample File:

maximize_on_open.zip 5.04KB 

Approved by mdmackillop


This entry has been viewed 194 times.

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express