+ Reply to Thread
Results 1 to 8 of 8

Run-time error 424 when trying to show userform

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Question Run-time error 424 when trying to show userform

    Ive created a userform that I want to have input data into specific cells in my worksheet. I have the userform created, and some of the other VB stuff written, but it is far from being functional. I have come across the first of what to is to be many problems (Im pretty rusty at VB).

    I have a button on my spreadsheet that is supposed to show the userform using this macro

    Please Login or Register  to view this content.
    When I click the button, it breaks at "Form1.Show" giving me "Run-time error 424 : Object Required"

    Ive been searching and reading reference material/tutorials on userforms but I cant find anything that helps.

    Input is appreciated.

  2. #2
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Run-time error 424 when trying to show userform

    If you check your object browser, how is the form called? Probably "UserForm1"? That's the name of the form Excel is looking for in your code. The object 'Form1' is not known, thus 424 error.

  3. #3
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Run-time error 424 when trying to show userform

    I think that your form name is other than Form1

    edit: thelongpants was quicker
    Last edited by Sbarro79; 07-25-2014 at 11:00 AM.

  4. #4
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Re: Run-time error 424 when trying to show userform

    Ive renamed the userform Form1 in the "name" section of the properties box.

    Here is the file im working with. Ive deleted some of the stuff that I think probably shouldnt be out on the net. There will be some other macros and stuff that are used in the other version that I havent deleted files in. Im sure my code is probably an organizational mess...please excuse.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Run-time error 424 when trying to show userform

    Ok, I checked your form. Its there as Form1 indeed. But when the Form1 intiates, its looking for object 'groovediatext', which does not seem to exist.
    you can check it by yourself by debugging (F8) the 'Private Sub UserForm_Initialize()'

  6. #6
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Run-time error 424 when trying to show userform

    Quote Originally Posted by Sbarro79 View Post
    I think that your form name is other than Form1

    edit: thelongpants was quicker
    yeah!

    (sorry for being off-topic)

  7. #7
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Re: Run-time error 424 when trying to show userform

    thelongpants - yes, i see it now. I had misnamed that text box (grovediatext instead of groovediatext). I also didnt remember about pushing F8, but Ill be sure to do that a lot now.

    Thanks for your help - its working now

  8. #8
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Run-time error 424 when trying to show userform

    Good to know! Please close thread as 'solved' and I appreciate some reputation stars :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel 2003 Userform.Show error
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 08:44 AM
  2. RunTime error with UserForm!.Show
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-03-2011, 09:42 AM
  3. UserForm as Add-In (Getting Error 9 on .show)
    By nalfin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2009, 06:08 AM
  4. Show real time in Userform caption
    By Henrich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2006, 11:30 AM
  5. [SOLVED] Run time error on Userform Show
    By DonF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2005, 06:00 PM

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