+ Reply to Thread
Results 1 to 4 of 4

How do you display a VBA user form when starting excel workbook?

  1. #1
    dant
    Guest

    How do you display a VBA user form when starting excel workbook?

    How do you display a VBA user form when starting excel workbook? Code works
    to populate a list box based on choice in previous list box but how do you
    show the form so that it can be used when you start excel? I want to make it
    an excel form to collect data that has interdependanrt fields.

  2. #2
    Howard Kaikow
    Guest

    Re: How do you display a VBA user form when starting excel workbook?

    1 way is to start the userform from an autoopen macro.

    --
    http://www.standards.com/; See Howard Kaikow's web site.
    "dant" <[email protected]> wrote in message
    news:[email protected]...
    > How do you display a VBA user form when starting excel workbook? Code

    works
    > to populate a list box based on choice in previous list box but how do you
    > show the form so that it can be used when you start excel? I want to make

    it
    > an excel form to collect data that has interdependanrt fields.




  3. #3
    MBlake
    Guest

    Re: How do you display a VBA user form when starting excel workbook?

    Open your VBE window (Alt+F11)
    Ensure your Project Window is open (View - Project Explorer)
    Click on the 'This Workbook' for your Excel file

    Add code but substitute MyForm for the name of your userform.

    ' Opens userform at startup
    '
    Private Sub Workbook_Open()
    frmMyForm.Show
    End Sub

    Regards,
    Mickey



  4. #4
    Tom Ogilvy
    Guest

    Re: How do you display a VBA user form when starting excel workbook?

    Additional information:

    http://www.cpearson.com/excel/events.htm
    Chip Pearson's overview page on events.
    --
    Regards,
    Tom Ogilvy

    "dant" <[email protected]> wrote in message
    news:[email protected]...
    > How do you display a VBA user form when starting excel workbook? Code

    works
    > to populate a list box based on choice in previous list box but how do you
    > show the form so that it can be used when you start excel? I want to make

    it
    > an excel form to collect data that has interdependanrt fields.




+ 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