ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Clear listbox (https://www.excelbanter.com/excel-programming/414821-clear-listbox.html)

johnrb7865

Clear listbox
 
Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John

Bob Phillips[_3_]

Clear listbox
 
Userform1.Listbox.Clear

--
__________________________________
HTH

Bob

"johnrb7865" wrote in message
...
Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John




JLGWhiz

Clear listbox
 
Me.ListBox1.Clear

"johnrb7865" wrote:

Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John


johnrb7865

Clear listbox
 
Thanks Bob, that worked.

"Bob Phillips" wrote:

Userform1.Listbox.Clear

--
__________________________________
HTH

Bob

"johnrb7865" wrote in message
...
Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John






All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com