PDA

View Full Version : Clearing a ListBox



MWE
01-15-2006, 07:31 PM
I have a ListBox on a form that is repopulated many times based on various buttons the user selects. I can remove items by looping through what is already there before adding the new items, but that seems like brute force. Is there a simple way to clear the contents of a ListBox?

Thanks

Dave
01-15-2006, 07:48 PM
UserForm1.ListBox1.Clear
Is this what you mean? Dave

MWE
01-15-2006, 07:56 PM
UserForm1.ListBox1.Clear
Is this what you mean? Dave
Yes, that is it. Seems so obvious :banghead:

Thanks

Zack Barresse
01-15-2006, 09:02 PM
Always the simple stuff, ain't it? :)