+ Reply to Thread
Results 1 to 7 of 7

Run-time error '424' Object required

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    43

    Run-time error '424' Object required

    Hello... can you can tell me what I am doing wrong here. I have a the code below in module and trying to have it populate my combobox. This works well when I run it under the UserForm_Initialize() event, but I sometimes need to run it independently.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Run-time error '424' Object required

    Usually the msg will highlite the line that is in error.

    You have mentioned you want to run the code independently, one would assume the code does not work independently because it is made for the userform.

  3. #3
    Registered User
    Join Date
    06-28-2010
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Run-time error '424' Object required

    I am sorry I wasn't very clear. Currently I have this routine stored in the Private Sub UserForm_Initialize() along with some other items that I have running when the form is loaded. On another tab of the userform there is a delete function. When that runs, I need to update the combo box on the main tab. So I figured I can put the routine in its own module and call it when I need to.

    The error occurs here "getCboListClasses cboClasses"
    .

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

    Re: Run-time error '424' Object required

    If the combobox cboClasses is on the userform and you are trying to run this code outside the userform module then you'll need a reference to the userform.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    06-28-2010
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Run-time error '424' Object required

    I did try that, but I get Authentication failed, Run-time error '2147217843

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Run-time error '424' Object required

    In your original question, what line gets highlighted when the error happens.

  7. #7
    Registered User
    Join Date
    06-28-2010
    Location
    Raleigh
    MS-Off Ver
    Excel 2003
    Posts
    43
    getCboListClasses cboClasses"

    I think i need to pass parameters to the combobox and that i am not certain about.

+ 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. Run-time error '424' Object Required
    By Brad1125 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2016, 12:55 PM
  2. [SOLVED] Run Time Error 424 Object Required
    By ZuneidDassu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2014, 11:15 AM
  3. Run-time error '424' : Object required
    By Gromain55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2013, 03:53 PM
  4. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  5. Run-Time error 424 - Object required
    By Mr_Knows_Nothing in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2012, 01:19 PM
  6. Run-time error '424': Object-required
    By narrowgate88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2010, 12:22 PM
  7. 424 run time error object required
    By nataliem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2007, 10:37 AM

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