Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel not opening maximized

Posted on 2014-01-17
4
Medium Priority
?
226 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
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 1000 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 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

886 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