Results 1 to 3 of 3

Thread: Auto Start VB In Excel (Simple)

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Chambersburg, PA
    Posts
    14

    Talking

    I need to have some VB in an Excel workbook to initialize as soon as the workbook is opened. I have searched the Excel VB Archive and cannot locate the correct syntax for this.

    This should be a very simple issue.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    in the code window:

    dblclick the ThisWorkbook

    select Workbook

    Private Sub Workbook_Open()

    End Sub
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Lively Member
    Join Date
    Aug 2000
    Location
    Darlington, United Kingdom
    Posts
    121
    Or you could create an
    Code:
    Sub Auto_Open
      'Place Code In Here
    End Sub
    This will do exactly the same thing as geoff_xrx posted, but if you are creating personal macros that are located in the xlstart folder, they will initialise as soon as Excel is opened....
    Do Not Underestimate The Power Of Simple VBA

    Maybe Its Just Not Possible, But Then Again What Is Impossible

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