I'm trying to add an item to a listbox and using the optional Index parameter. I keep getting the following error "Runtime error 5 - Invalid procedure call or argument". My code is simple.
Dim iPlace as Integer
Iplace=2
ListBox(2).Add strOutputs, Iplace
According to the help, setting the Index will put the added item in that position but I keep getting the error.
What am I doing wrong?
TIA
David