+ Reply to Thread
Results 1 to 9 of 9

run time error 424 object not found

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Plymouth
    MS-Off Ver
    Excel 2003
    Posts
    3

    run time error 424 object not found

    Im trying to create a data form to upload details to spreadsheet. I have created the form in VBA but when I try and play it i get the error message "run time error 424 object not found." I cant seem to find the problem in the code and have stared at it for so long I feel a bit like an eskino staring at the snow. Any suggestions will be welcome below is the code

    Please Login or Register  to view this content.
    Last edited by GingerJah; 05-12-2010 at 06:31 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: run time error 424 object not found

    Welcome to the Forum

    Add Code tags before the moderators get you!!...

    Forum Rules

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: run time error 424 object not found

    Maybe it is the sheet name

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: run time error 424 object not found

    And maybe indicate what line is giving you the error message.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  5. #5
    Registered User
    Join Date
    05-12-2010
    Location
    Plymouth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: run time error 424 object not found

    It is not displaying which line is generatingthe error message

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: run time error 424 object not found

    I suspect one of your control names is wrong. When you get the error, press Debug then press f8 repeatedly to step through the code line by line and see where the actual error is.
    Remember what the dormouse said
    Feed your head

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: run time error 424 object not found

    Try this

    Please Login or Register  to view this content.

    You would also save a lot of grief if you were to put your Combo List on a lookup sheet and call the items from there. Either in the properties pane, or via code.

    Also in Private Sub cmdOK_Click()
    You have two "End If"s without an If statement, try this

    Please Login or Register  to view this content.

    Cheers

  8. #8
    Registered User
    Join Date
    05-12-2010
    Location
    Plymouth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: run time error 424 object not found

    Thanks for that the line showing as the error are

    the first two after the button commands, they are

    Private Sub UserForm_Initialize()
    txtName.Value = ""

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: run time error 424 object not found

    I'd double check the control name then. If you delete the
    Please Login or Register  to view this content.
    line and type
    Please Login or Register  to view this content.
    you should get a list of the properties (including control names) that start with 't' so check if yours is listed.

+ 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