Execute Method

Applies To

Action object.

Description

Executes the action for the item. Returns the Outlook item created by the action.

Syntax

expression.Execute

expression An expression that returns an Action object.

See Also

AppointmentItem object, ContactItem object, JournalItem object, MailItem object, MeetingRequestItem object, NoteItem object, PostItem object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.

Example

This example looks through the all the actions for the given mail message, and executes the action called "Reply to All."

For Each a In myItem.Actions
    If a.Name = "Reply to All" Then
        Set myItem2 = a.Execute
        Exit For
    End If
Next a