+ Reply to Thread
Results 1 to 6 of 6

Initializing a Userform

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Initializing a Userform

    Hello Everyone,

    I'm conducting a UserForm tutorial posted on following site:

    http://www.excel-vba-easy.com/vba-us...excel-vba.html

    but I can't seem to launch the form to test it. When I click on the command button that I have created to do this I recieve the error :

    "Runtime Error '424' Object Required"

    I can't seem to find my mistake. Can anyone offer anyhelp?

    I've attached the workbook.

    Thanks Everyone, you've all been great since I first signed up!
    Attached Files Attached Files
    Last edited by ashleys.nl; 10-13-2011 at 09:28 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Initializing a Userform

    Hi,

    In the UserForm_Initialize() event handler, check for some incorrectly named controls.

    For example, in the code:
    Please Login or Register  to view this content.
    But the control is called NameTestBox
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Initializing a Userform

    Thanks I'll give it a re-read. Good Catch.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Initializing a Userform

    The SetFocus line is failing & causing an error.

    Use Option Explicit & you will pick up the mistake
    Last edited by royUK; 10-13-2011 at 09:28 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    09-05-2011
    Location
    St. John's, Canada
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Initializing a Userform

    GOT IT! Thanks guys! there were some labeling issues that I missed!

    Thank you all soo much! Its up and running great now!

    I've attached the latest copy for others.
    Attached Files Attached Files

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Initializing a Userform

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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