Solved

Excel not opening maximized

Posted on 2014-01-17
4
221 Views
Last Modified: 2014-01-17
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
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 250 total points
ID: 39788791
I think the sub needs to be this (note the underscore):
Workbook_Open

Open in new window

0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 250 total points
ID: 39788803
I believe that you may also need to save the file as a XLSM extension to enable macros in 2007.
0
 

Author Comment

by:Frank Freese
ID: 39788805
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
 

Author Closing Comment

by:Frank Freese
ID: 39788812
thank folks.....I still want to yell a Microsoft.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question