Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Simple Listbox question - how to remove items

How can I remove all items from a listbox by looping through them?

-gk-



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Simple Listbox question - how to remove items

Either

lstName.Clear

or something like:

with lstName
while .listcount 0
.RemoveItem(0)
loop
end with

Robin Hammond
www.enhanceddatasystems.com

"TBA" wrote in message
...
How can I remove all items from a listbox by looping through them?

-gk-





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Simple Listbox question - how to remove items

ListBox1.Clear

Rob

"TBA" wrote in message
...
How can I remove all items from a listbox by looping through them?

-gk-





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Simple Listbox question - how to remove items

Try something like

ListBox1.Clear


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"TBA" wrote in message
...
How can I remove all items from a listbox by looping through

them?

-gk-





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to drag items within listbox MP Excel Discussion (Misc queries) 0 January 15th 09 03:56 PM
Listbox--moving items up or down libby Excel Programming 0 November 7th 03 06:53 PM
listing items from listbox Gerry[_5_] Excel Programming 2 October 18th 03 02:45 AM
Counting items in a listbox Thurman Excel Programming 0 September 5th 03 06:36 AM
Checking Listbox Items Tim[_15_] Excel Programming 1 July 20th 03 05:27 PM


All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"