Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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
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
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
Events ojv[_2_] Excel Programming 3 October 22nd 04 01:59 PM
events jacob Excel Programming 2 September 7th 04 02:15 PM
Need some events... Tim Mattingly Excel Programming 0 August 16th 04 09:53 AM
events Mark[_17_] Excel Programming 1 October 31st 03 09:18 AM


All times are GMT +1. The time now is 05:51 AM.

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

About Us

"It's about Microsoft Excel"