MailItem.Application property (Outlook)

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Syntax

expression.Application

expression A variable that represents a MailItem object.

Example

This Visual Basic for Applications (VBA) example uses the Application property to access Outlook, creates a new MailItem and displays the version of Outlook used to create the item.

Sub CreateMailItem() 
 
 Dim myItem As Outlook.MailItem 
 
 
 
 Set myItem = Application.CreateItem(olMailItem) 
 
 MsgBox myItem.Application.Version 
 
End Sub

See also

MailItem Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.