user1000730
user1000730

Reputation: 35

No duplicates in listbox vba excel

i have a listbox which adds items with a button, every time i click it again adds up those same items which i dont want . can there be any solution for this in VBA?

Upvotes: 0

Views: 747

Answers (1)

chris neilsen
chris neilsen

Reputation: 53127

Remove the old items before adding new ones, using

ListBox1.Clear

Upvotes: 1

Related Questions