+ Reply to Thread
Results 1 to 3 of 3

Is there an onload event in Excel?

  1. #1
    Registered User
    Join Date
    04-27-2006
    Posts
    6

    Is there an onload event in Excel?

    I am trying to make an excel file maximize when the page is loaded. I don't see an onload event, does anyone know if there is one?

    Lori

  2. #2
    Jim Thomlinson
    Guest

    RE: Is there an onload event in Excel?

    If you right click on the Excel icon in the upper left corner of the Excel
    window and select View code it wil take you to ThisWorkbook in the VBE. There
    are two drop down's just above the code window. Change the one on the left to
    workbook and the other to OnOpen...
    --
    HTH...

    Jim Thomlinson


    "loric" wrote:

    >
    > I am trying to make an excel file maximize when the page is loaded. I
    > don't see an onload event, does anyone know if there is one?
    >
    > Lori
    >
    >
    > --
    > loric
    > ------------------------------------------------------------------------
    > loric's Profile: http://www.excelforum.com/member.php...o&userid=33920
    > View this thread: http://www.excelforum.com/showthread...hreadid=539113
    >
    >


  3. #3
    Dave Peterson
    Guest

    Re: Is there an onload event in Excel?

    The dropdown on the right should be named "Workbook_Open" (not OnOpen).

    Your (the OP's) code could look like:

    Option Explicit
    Private Sub Workbook_Open()
    Application.WindowState = xlMaximized
    ActiveWindow.WindowState = xlMaximized
    End Sub




    Jim Thomlinson wrote:
    >
    > If you right click on the Excel icon in the upper left corner of the Excel
    > window and select View code it wil take you to ThisWorkbook in the VBE. There
    > are two drop down's just above the code window. Change the one on the left to
    > workbook and the other to OnOpen...
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    > "loric" wrote:
    >
    > >
    > > I am trying to make an excel file maximize when the page is loaded. I
    > > don't see an onload event, does anyone know if there is one?
    > >
    > > Lori
    > >
    > >
    > > --
    > > loric
    > > ------------------------------------------------------------------------
    > > loric's Profile: http://www.excelforum.com/member.php...o&userid=33920
    > > View this thread: http://www.excelforum.com/showthread...hreadid=539113
    > >
    > >


    --

    Dave Peterson

+ 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