简体   繁体   中英

Excel VBA Combobox OnExit Event

I have the code:

Private Sub TempCombo_Exit(Cancel As Integer)
    MsgBox "test"
End Sub

But when i exit from TempCombo nothing happens?

What's wrong?

Obs: i need to do a validation when lost focus

ActiveX comboboxes don't have an Exit event. Go to the sheet's module and choose TempCombo from the left drop down and you'll get a list of events from the right drop down. I think the LostFocus event is what you'll want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM