title: Excel VBA: Can't deselect ListBox items from listbox
body: <p>I have a command button that processes selected items in a ListBox (ListBox4). While i CAN deselect all the items in that command's Click() procedure, I wanted to, if the user clicked in the ListBox, to THEN deselect everything in the ListBox, prior to their selecting again.</p>
  
  <p>I have code like the following, but it never seems to get called:</p>
  
  <pre><code>Private Sub ListBox4_Click()
  If Apply_Format_Occurred Then
  For i = 0 To ListBox4.ListCount - 1
           ListBox4.Selected(i) = False
  Next i
  End Sub
  </code></pre>
  
  <p>Do i need an outside command, etc to do this? I was hoping to be able to do it like how i described.</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>thanks,</p>
  
  <p>Russ</p>