ExitForm
This command exits the current application. The VBA event where this is called must exit before this statement is carried out. Therefore it is always best to use an Exit Sub statement immediately after this command.
Group: Application-Based Extension
Syntax: App.ExitForm
Example:
Private Sub btnExit_Click()
On Error Resume Next
App.ExitForm
End Sub
See also: App.Signout.