Action Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Actions
Aa613118.parchild(en-us,office.10).gifAction
Aa613118.space(en-us,office.10).gifAa613118.parchild(en-us,office.10).gifNameSpace

Represents a specialized action (for example, the voting options response) that can be executed on an item. The Action object is a member of the Actions object.

Using the Action Object

Use Actions(index), where index is the name of an available action, to return a single Action object.

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

  Set myOlApp = CreateObject("Outlook.Application")
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.

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