Share via


OLEObject.LostFocus Event

Excel Developer Reference

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.

Visual Basic for Applications
  Private Sub ListBox1_LostFocus()
    ' runs when list box loses the focus
End Sub

See Also