In the click of a combobox I have a routine that starts a
code:
....
while not. eof
wend
....
this cycle is verylong.
How can I inhibit a second click on the combobox until it is completed on the first event?
inibit click event in combobox
-
- Administrator
- Posts: 78668
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: inibit click event in combobox
Declare a variable at the top of the module:
In your event procedure:
where ComboBox1 is the name of the combo box.
Code: Select all
Private blnExit As Boolean
Code: Select all
Private Sub ComboBox1_Click()
If blnExit Then Exit Sub
blnExit = True
' your code here
...
blnExit = False
End Sub
Best wishes,
Hans
Hans