Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Starting a VB form when sheet is open

  1. #1
    New Member
    Join Date
    Feb 2002
    Location
    Wisconsin
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I created a form and module in Excel VBA.
    How do I cause it to start when the worksheet containing it starts?

    Hope I am asking the correct question. I am used to programming in VB 6.0. You specify a form or main module as the startup in VB. Can't figure out how to do that in VBA.

    Thanks.

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Posts
    103
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    use the macro below, you must call the macro auto_open


    Sub auto_open()


    ' auto_open Macro
    ' Macro recorded 28-10-01 by DENIS MCCARTHY

    UserForm1.Show

    End Sub

  3. #3
    New Member
    Join Date
    Feb 2002
    Location
    Wisconsin
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thank you very much.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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