How to clear a listbox

  • Thread starter Thread starter SF
  • Start date Start date
S

SF

Hi,

I have a listbox that allow user to select items. How to clear this listbox
after selection has been made?

SF
 
Try the following, as the Click event procedure of a 'Clear Selections'
button for example:

Dim n As Integer

For n = 0 To Me.YourListBox.ListCount - 1
Me. YourListBox.Selected(n) = False
Next n

Ken Sheridan
Stafford, England
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top