LostFocus Event [Excel 2003 VBA Language Reference]

Occurs when an ActiveX control loses input focus.

Private Subobject**_LostFocus()**

object The name of an ActiveX control.

Example

This example runs when ListBox1 loses the focus.

Private Sub ListBox1_LostFocus()
    ' runs when list box loses the focus
End Sub

Applies to | OLEObject Object

See Also | BeforeClose Event | Deactivate Event