OLEObject.LostFocus event (Excel)
Occurs when an ActiveX control loses input focus.
Syntax
expression.LostFocus
expression A variable that represents an OLEObject object.
Return value
Nothing
Example
This example runs when ListBox1 loses the focus.
Private Sub ListBox1_LostFocus()
' runs when list box loses the focus
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.