Syntax
Private Sub OLEObject_GotFocus()
Enter
Code
End Sub
This event occurs when an ActiveX control
gets input focus.
Example
Private Sub ListBox1_GotFocus()
' runs
when list box gets the focus
End Sub
Result
This example runs when ListBox1 gets the
focus.