+ Reply to Thread
Results 1 to 3 of 3

Show a Userform

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    South Yorks, England
    MS-Off Ver
    Excel 2010
    Posts
    32

    Show a Userform

    Hi

    I'm new to Userforms and having trouble getting the form to show. I have created a form in VBA which I want to show when the workbook is opened but cannot get it to show at all, even to test it out. I have added the following code into 'this workbook'
    Please Login or Register  to view this content.
    and also tried
    Please Login or Register  to view this content.
    but nothing happens when I save, close and re-open the book.

    What am I doing wrong?

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Show a Userform

    from where do you call the GetUserNameandWeek sub?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Show a Userform

    Is the form called NameDataForm?

    If it is then it should show when you run the first code you posted.
    If posting code please use code tags, see here.

+ 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