Actions Object

Microsoft Outlook Visual Basic

Show All Show All

Actions Object

Multiple objects Actions
Action

A collection of Action objects that represent all the specialized actions that can be executed on an Outlook item.

Using the Actions Object

Use the Actions property to return the Actions object for any Outlook item 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 (VBA) 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