Redigera

Dela via


Action object (Outlook)

Represents a specialized action (for example, the voting options response) that can be executed on an Outlook item.

Remarks

The Action object is a member of the Actions collection.

Use Actions (index), where index is the name of an available action, to return a single Action object from the Actions collection object of an Outlook item, such as MailItem.

Example

The following Visual Basic for Applications (VBA) example uses the Reply action of a particular item to send a reply.

myItem = CreateItem(olMailItem) 
 
Set myReply = myItem.Actions("Reply").Execute

The following Visual Basic for Applications example does the same thing, using a different reply style for the reply.

myItem = CreateItem(olMailItem) 
 
myItem.Actions("Reply").ReplyStyle = _ 
 
 olIncludeOriginalText 
 
Set myReply = myItem.Actions("Reply").Execute

Methods

Name
Delete
Execute

Properties

Name
Application
Class
CopyLike
Enabled
MessageClass
Name
Parent
Prefix
ReplyStyle
ResponseStyle
Session
ShowOn

See also

Action Object Members Outlook Object Model Reference

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.