Consulting

Results 1 to 3 of 3

Thread: Solved: Userform

  1. #1

    Solved: Userform

    Hi,

    How can I make a Userform pop up as soon as the excel file is opened?
    I know how to link it to a command button and use FormName.Show code but I would like to have Userform ready for use without having to click command button.

    Also how can I have Userform pop up in a specific part of excel sheet?
    For example in (or around) Cell B4 so top left corner of sheet?

    Thanks,
    Nix

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    In the ThisWorkbook code module

    [vba]

    Private Sub Workbook_Open()
    Userform1.Show
    End Sub[/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Great thanks!


Posting Permissions

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