P
Patrick Pirtle
I have a number of combo boxes with associated code
that I want to run when something is selected. The
amateurish way I've been doing this is to set a global
boolean variable that doesn't get set to True until the
combobox is fully populated. As I step through my
code, I can see that each entry into the combobox
runs the ComboBox_Change code, but nothing happens
until the runOnce boolean is set:
Public runOnce As Boolean
Sub Main
'---->Populate the combobox
runOnce = True
End Sub
Private Sub ComboBox_Change()
If runOnce Then
'---->Do Stuff
End If
End Sub
How SHOULD I be accomplishing this? TIA for any
help and suggestions.
that I want to run when something is selected. The
amateurish way I've been doing this is to set a global
boolean variable that doesn't get set to True until the
combobox is fully populated. As I step through my
code, I can see that each entry into the combobox
runs the ComboBox_Change code, but nothing happens
until the runOnce boolean is set:
Public runOnce As Boolean
Sub Main
'---->Populate the combobox
runOnce = True
End Sub
Private Sub ComboBox_Change()
If runOnce Then
'---->Do Stuff
End If
End Sub
How SHOULD I be accomplishing this? TIA for any
help and suggestions.