This is driving me absolutely nuts. The code I use works perfectly for filling a userform listbox, even with other excel files open (even the macro file I'm trying to export into is open). I export the form and import it into my main project and now when I run it, I get an error 91: object variable or with block variable not set. All the variables are defined in a global list (just like my original form), it's the same identical code (just like my original form), and there is no other code running. I've isolated the problem to the formatting line. I'm at my wits end over something so stupid as a formatting issue? Is there an alternative code to what I'm trying to do? I can't understand why it would work in one document and not the other.
Please Login or Register to view this content.
Bookmarks