+ Reply to Thread
Results 1 to 5 of 5

Maximize Excel When Workbook Opening

  1. #1
    Forum Contributor
    Join Date
    08-20-2009
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    119

    Maximize Excel When Workbook Opening

    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,

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Maximize Excel When Workbook Opening

    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

  3. #3
    Forum Contributor
    Join Date
    08-20-2009
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Maximize Excel When Workbook Opening

    Quote Originally Posted by gmr4evr1 View Post
    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
    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!

  4. #4
    Forum Contributor
    Join Date
    08-20-2009
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Maximize Excel When Workbook Opening

    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.

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Maximize Excel When Workbook Opening

    Yup, that's what I was going to suggest....glad you got it figured out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automatically maximize workbooks when opening
    By Carrfamily in forum Excel General
    Replies: 3
    Last Post: 08-18-2017, 06:17 PM
  2. Force maximize Excel workbook under any situation
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2012, 10:12 PM
  3. How to maximize window state when opening file?
    By sauerj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2011, 09:52 PM
  4. Excel workbook won't maximize for Full screen
    By anoble1 in forum Excel General
    Replies: 3
    Last Post: 09-28-2010, 11:50 AM
  5. [SOLVED] Cannot maximize an existing workbook in the excel main window.
    By Jimmy in forum Excel General
    Replies: 2
    Last Post: 07-31-2006, 11:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1