+ Reply to Thread
Results 1 to 2 of 2

Error 424 Object Required Error when Using AddItem to ListBox Generated in Code

  1. #1
    Registered User
    Join Date
    07-20-2005
    Posts
    13

    Error 424 Object Required Error when Using AddItem to ListBox Generated in Code

    Hey all, I am having an error message when I ask Excel to AddItem to a listbox that was created earlier in the code. It is giving me an error 424 object required message and I can't seem to figure out why it is not referencing the listboxes I had already made. I am including the code:

    Please Login or Register  to view this content.
    The error is triggered by the AddItem code in my looped if statements.

    Thanks,

    ~J

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,428

    Re: Error 424 Object Required Error when Using AddItem to ListBox Generated in Code

    Are you not mixing runtime code with design time code?

    Your code creates the form and controls at design time, yes?

    If so then the Additem is really a runtime operation.
    Cheers
    Andy
    www.andypope.info

+ 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