• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Excel not opening maximized

Good morning,
The below code appears in "ThisWorkbook" under WorkbookOpen.

Application.WindowState = xlMaximized
ActiveWindow.WindowState = xlMaximized

Open in new window


It is not maximizing my workbook window when I open the workbook and I don't understand why?
0
Frank Freese
Asked:
Frank Freese
  • 2
2 Solutions
 
Angelp1ayCommented:
I think the sub needs to be this (note the underscore):
Workbook_Open

Open in new window

0
 
Jerry MillerCommented:
I believe that you may also need to save the file as a XLSM extension to enable macros in 2007.
0
 
Frank FreeseAuthor Commented:
my mistake. it is workbook_sub. Sometimes I just want to %$#@!^^ at Microsoft. Now it is working. Go figure. BTW it is saved as xlsm and macros enable
0
 
Frank FreeseAuthor Commented:
thank folks.....I still want to yell a Microsoft.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now