Class Action (Outlook VBA)
The class Action represents a specialized action (for example, the voting options response) that can be executed on an Outlook item.
Dim act as Action
Set act = Session.CreateSharingItem.Reply.Actions(Index:=1)
For Each
Here is an example of processing the Action items in a collection.
Dim act As Action
For Each act In Session.CreateSharingItem.Reply.Actions
Next act
Methods
Delete - Deletes an object from the collection.
Execute - Executes the action for the specified item.
Properties
Class returns an OlObjectClass constant indicating the object's class.
CopyLike returns or sets an OlActionCopyLike constant indicating the property inheritance style to use for the action.
Enabled returns or sets a Boolean that is True if the action is enabled in the application.
MessageClass returns or sets a String representing the message class for the Action.
Name returns or sets a String value that represents the display name for the object.
Prefix returns or sets a String specifying the prefix (for example, "Re") to use with the subject of the item when the action is executed.
ReplyStyle returns or sets an OlActionReplyStyle constant indicating the text formatting reply style for the specified action.
ResponseStyle returns or sets an OlActionResponseStyle constant indicating the response style used when the specified action is executed.
Session returns the NameSpace object for the current session.
ShowOn returns or sets an OlActionShowOn constant representing the location where the action will be shown.
Related Classes
NameSpace - Represents an abstract root object for any data source.