View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Peter[_48_] Peter[_48_] is offline
external usenet poster
 
Posts: 5
Default Can anyone help with _click() events?

Stephen Bullen wrote:

Setting the value of a check box does indeed fire the _Click event. Most
people get around this by using a 'mbNoEvents' module-level variable:

Dim mbNoEvents As Boolean

'In the spin button code:
mbNoEvents = True
CheckBox1.Value = True
CheckBox2.Value = False
mbNoEvents = False

Private Sub CheckBox1_Click()

If mbNoEvents then Exit sub

'... do whatever
End Sub


Many, many thanks for this. As it happens I'd worked something out on
the same lines embedded in the _click code but yours is a more elegant
solution.

Peter