简体   繁体   English

VBA Excel中的列表框没有重复

[英]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? VBA中对此有什么解决方案吗?

删除旧项目,然后再添加新项目,方法是

ListBox1.Clear

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM