Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 811 Bytes

Excel.Application.MailLogoff.md

File metadata and controls

42 lines (24 loc) · 811 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.MailLogoff method (Excel)
vbaxl10.chm133157
vbaxl10.chm133157
Excel.Application.MailLogoff
5265e9c1-6c04-3591-7133-5274e5b56347
04/05/2019
medium

Application.MailLogoff method (Excel)

Closes a MAPI mail session established by Microsoft Excel.

Syntax

expression.MailLogoff

expression A variable that represents an Application object.

Remarks

You cannot use this method to close or log off from Microsoft Mail.

Example

This example closes the established mail session if there is one.

If Not IsNull(Application.MailSession) Then Application.MailLogoff

[!includeSupport and feedback]