+ Reply to Thread
Results 1 to 5 of 5

Display form in an excel worksheet without clicking a butoon

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-30-2006
    Posts
    116

    Display form in an excel worksheet without clicking a butoon

    Hi everyone,

    Is it possible to display a userform once the workbook is open. I don't want to have a button that I can click to display the form. I want it to pop up by itself. Thanks in advance

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Sure, just activate the userform in the Workbook_Open event handler procedure.

    Jason

  3. #3
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Richard, in case that was not clear, copy the following code into the ThisWorkbook module of your file:
    Private Sub Workbook_Open()
        UserForm1.Show
    End Sub
    Change UserForm1 to the name of your user form.

    HTH

    Jason

  4. #4
    Forum Contributor
    Join Date
    06-30-2006
    Posts
    116
    Jason,

    Thank you ! That's what I exactly wanted.

  5. #5
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad I could help you out, Richard.

+ 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