title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Application.MailLogoff method (Excel) |
vbaxl10.chm133157 |
|
|
5265e9c1-6c04-3591-7133-5274e5b56347 |
04/05/2019 |
medium |
Closes a MAPI mail session established by Microsoft Excel.
expression.MailLogoff
expression A variable that represents an Application object.
You cannot use this method to close or log off from Microsoft Mail.
This example closes the established mail session if there is one.
If Not IsNull(Application.MailSession) Then Application.MailLogoff
[!includeSupport and feedback]