ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove all Listbox items (https://www.excelbanter.com/excel-programming/303867-remove-all-listbox-items.html)

Todd huttenstine

Remove all Listbox items
 
Whats the quickest way to remove every item in a listbox?

Todd

Dick Kusleika[_3_]

Remove all Listbox items
 
Todd

It depends how it was populated

Me.ListBox1.Clear

if the AddItem method was used and

Me.ListBox1.RowSource = ""

if the RowSource property was used.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Todd Huttenstine" wrote in message
...
Whats the quickest way to remove every item in a listbox?

Todd




Todd huttenstine

Remove all Listbox items
 
nevermind. Im going to use .clear
-----Original Message-----
Whats the quickest way to remove every item in a listbox?

Todd
.


Todd huttenstine

Remove all Listbox items
 
Thanks
Todd Huttenstine
-----Original Message-----
Todd

It depends how it was populated

Me.ListBox1.Clear

if the AddItem method was used and

Me.ListBox1.RowSource = ""

if the RowSource property was used.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Todd Huttenstine"

wrote in message
...
Whats the quickest way to remove every item in a

listbox?

Todd



.



All times are GMT +1. The time now is 09:11 AM.

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