+ Reply to Thread
Results 1 to 2 of 2

Runtime error 424, Object required

  1. #1
    Registered User
    Join Date
    12-27-2010
    Location
    LA
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    1

    Unhappy Runtime error 424, Object required

    Hello Everyone,


    I have 2 Activex ComboBoxes on a sheet and I am trying to populate the range in the 2nd combobox based on the value in the first combobox.
    Here is my code. But whenever I run it, I get the following error:
    "Runtime error 424, Object required" .. Please Help!
    Note: Linked Cell for ComboBox1 is D1


    Please Login or Register  to view this content.
    I defined Fruits_Range and Veg_Range using Formula > Name Manager
    Here is the logic: If someone selects "Fruits" from the 1st List box, then I would like to display a list of fruits in the 2nd box.


    I know I could do pretty much the same thing using Data Validation Lists, but my boss would like me to use ActiveX ComboBoxes and dont ask me why!


    Quick help would be much appreciated.
    Thanks,

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Runtime error 424, Object required

    Hello Ajain,

    Welcome to the Forum!
    1. Instead of the ComboBox_Change(), you should move your code to the ComboBox_Click() event.
    2. Use a predefined list for your choices in ComboBox1 rather than an input cell. This is doubling your work.

    Here is an example of the code after applying the changes above. The ListFillRange of ComboBox1 is set to the predefined list containing the name ranges. I named my ranges "Fruits" and "Vegetables".
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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