+ Reply to Thread
Results 1 to 3 of 3

Maximizing a workbook

  1. #1
    Cabaco
    Guest

    Maximizing a workbook

    Hi, everybody

    Is there a code that maximizes a workbook when it opens?

    I tried this:
    Sub Workbook_open()
    Application.WindowState = xlMaximized
    End Sub

    But it only maximizes the Excel window.

    Any help?

    Thanks,
    Cabaco

  2. #2
    Rob Bovey
    Guest

    Re: Maximizing a workbook

    "Cabaco" <[email protected]> wrote in message
    news:[email protected]...
    > Is there a code that maximizes a workbook when it opens?
    >
    > I tried this:
    > Sub Workbook_open()
    > Application.WindowState = xlMaximized
    > End Sub


    Hi Cabaco,

    Here's one way to do it:

    ThisWorkbook.Windows(1).WindowState = xlMaximized

    --
    Rob Bovey, Excel MVP
    Application Professionals
    http://www.appspro.com/

    * Take your Excel development skills to the next level.
    * Professional Excel Development
    http://www.appspro.com/Books/Books.htm



  3. #3
    STEVE BELL
    Guest

    Re: Maximizing a workbook

    You are close - try this...

    ActiveWindow.WindowState = xlMaximized

    --
    steveB

    Remove "AYN" from email to respond
    "Cabaco" <[email protected]> wrote in message
    news:[email protected]...
    > Hi, everybody
    >
    > Is there a code that maximizes a workbook when it opens?
    >
    > I tried this:
    > Sub Workbook_open()
    > Application.WindowState = xlMaximized
    > End Sub
    >
    > But it only maximizes the Excel window.
    >
    > Any help?
    >
    > Thanks,
    > Cabaco




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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