+ Reply to Thread
Results 1 to 3 of 3

Loading UserForm on start up.

  1. #1
    Kobus
    Guest

    Loading UserForm on start up.

    Using VBA in Excel, how do I display the first UserForm immediate when the
    workbook has opened. The UserForm prompts the user for a date and then
    recalculates all the values in the worksheet according to the date.

  2. #2
    Xcelion
    Guest

    RE: Loading UserForm on start up.

    Hi Kobus,

    You can wite the code in the Open event of workbook to show the form

    Private Sub Workbook_Open()
    Userform1.Show
    End Sub

    Thanks
    Xcelion


    "Kobus" wrote:

    > Using VBA in Excel, how do I display the first UserForm immediate when the
    > workbook has opened. The UserForm prompts the user for a date and then
    > recalculates all the values in the worksheet according to the date.


  3. #3
    Paul
    Guest

    Re: Loading UserForm on start up.

    Hi Kobus,

    on the thisworkbook module in VBA Editor paste:

    Private Sub Workbook_Open()
    UserForm.Show
    End Sub

    where, UserForm is the name of your user form.

    to unload the userform:
    Unload UserForm

    hope this helps!!

    "Kobus" <[email protected]> wrote in message
    news:[email protected]...
    > Using VBA in Excel, how do I display the first UserForm immediate when the
    > workbook has opened. The UserForm prompts the user for a date and then
    > recalculates all the values in the worksheet according to the date.




+ 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