Bráulio Gerson de Lima Fi
New Member
- Joined
- Apr 13, 2007
- Messages
- 6
Gostaria de inibir eventos (impedir o evento Change), para "List Box" ou "Combo Box", enquanto a macro executa outros procedimentos.
application.enableevents = false
application.enableevents = true
Private m_booEnableEvents As Boolean
Private Sub btnToggleEvents_Click()
m_booEnableEvents = Not m_booEnableEvents
End Sub
Private Sub ListBox1_Change()
If Not m_booEnableEvents Then Exit Sub
'// ...code...
End Sub
Private Sub UserForm_Initialize()
m_booEnableEvents = True
End Sub