Results 1 to 3 of 3

Thread: VBA - running a macro at worksheet load in Excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    3

    VBA - running a macro at worksheet load in Excel

    I have an Excel 2002 spreadsheet that does some automatic calculations when the user clicks on the command button. I would like the spreadsheet to run a particular macro when it first loads.

    I've tried putting code in Worksheet_Activate, but of course that doesn't run until the user selects the sheet. I don't want the user to have to do anything, I just want it to run automatically.

    Any suggestions? Thanks in advance.

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Use Workbook_Open() instead.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    3
    Originally posted by andreys
    Use Workbook_Open() instead.
    Well, duh.

    Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width