Originally posted by albertw
VBA listbox help
Collapse
X
-
my mistake i'd left in the userform1.show above the code, then closed it to run the code underneath and it'd reset the .listcount to 0. works now.Originally posted by Killer42Yes, as albertw points out, if the listcount is 0 the For statement will be set to loop from 0 to -1. In which case, we will never enter the loop.
cheers
black boxComment
Comment