共用方式為


MAPILogonComplete Event

Occurs after the user has logged onto the system.

Private Subexpression_MAPILogonComplete()

*expression   * A variable which references an object of type **Application**declared with events in a class module.

Example

The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example displays a message after the user has logged onto the system.

Private Sub Application_MAPILogonComplete()
'Occurs when a user has logged on

    MsgBox "Logon complete."

End Sub

Applies to | Application Object