+ Reply to Thread
Results 1 to 6 of 6

Error 424 Object required when adding items to multi-column listbox

  1. #1
    Registered User
    Join Date
    08-20-2020
    Location
    Houston, Texas
    MS-Off Ver
    2016 Excel
    Posts
    16

    Error 424 Object required when adding items to multi-column listbox

    Hi. I'm trying to add data for the second and third columns of a multi-column listbox. The code as shown below works fine; only the first column is added. When I uncomment the two commented lines I get the 424 error message on the first now uncommented line.

    This code is in a UserForm which has two controls: txbLocation and ListBox1. A location is entered into the textbox and matched against entries in column 2 of shtTrailers. When found, items from Column 1, 3, and 4 are to be added to ListBox1.

    I'm really puzzled over this. Your guidance is sincerely appreciated. Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,888

    Re: Error 424 Object required when adding items to multi-column listbox

    How about
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-20-2020
    Location
    Houston, Texas
    MS-Off Ver
    2016 Excel
    Posts
    16

    Re: Error 424 Object required when adding items to multi-column listbox

    Nope, same error message. And it doesn't address the error message issue of 'Object required.' Isn't ListBox1 an object? And clearly stated in "With ListBox1"? And which works with .AddItem?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,888

    Re: Error 424 Object required when adding items to multi-column listbox

    Forgot to remove the .Value from the end
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-20-2020
    Location
    Houston, Texas
    MS-Off Ver
    2016 Excel
    Posts
    16

    Re: Error 424 Object required when adding items to multi-column listbox

    Of course. Thanks so much!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,888

    Re: Error 424 Object required when adding items to multi-column listbox

    You're welcome & thanks for the feedback.

+ 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] How to keep items in ListBox in alphabetical order when removing and adding items to box
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-31-2015, 07:13 AM
  2. [SOLVED] List of items in a userform listbox, object required error in code
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2015, 09:10 AM
  3. [SOLVED] Adding new items to Multi-Column Listbox on seperate Userform
    By Hutinni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2013, 02:43 PM
  4. Adding hyperlinks to cells using an array - object required error
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2013, 05:54 AM
  5. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  6. Error 424 Object Required Error when Using AddItem to ListBox Generated in Code
    By jclark419 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2010, 12:47 PM
  7. removing and replacing items in multi column listbox.
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2009, 10:20 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