http://www.vbaexpress.com/kb/getarticle.php?kb_id=556
The code does not work, anyone know how to maximize excel when opening? It does not have to be VBA, if there is setting somewhere.
Thanks,
http://www.vbaexpress.com/kb/getarticle.php?kb_id=556
The code does not work, anyone know how to maximize excel when opening? It does not have to be VBA, if there is setting somewhere.
Thanks,
Two questions...
1) Is the workbook protected? If so, unprotect it
2) Did you put the code from the link in the workbook or sheet module? It worked fine for me in the workbook module, but did not work when I put it in the sheet module.
Last edited by gmr4evr1; 06-17-2015 at 02:21 PM. Reason: Corrected typos
1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.
Tom
Yes, it is protected, and I NEED to protect the workbook. Any other alternatives to open a protected workbook in maximized window?
Workbook module
See the attached screenshot.
error.jpg
Thanks much!
Never mind, I found the solution.
Adding two lines of code. One line (unprotect workbook by VBA) at the beginning, another line (protecting workbook) at the end.
Thanks.
Yup, that's what I was going to suggest....glad you got it figured out.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks