Add Method (Actions Object)

Applies To

Actions collection object.

Description

Creates a new action in the Actions collection, and returns the new action as a Action object.

Syntax

expression.Add

expression An expression that returns an Actions object.

Example

This example creates a new mail message and adds an Action to it.

Set myItem = myOlApp.CreateItem(olMailItem)
Set myAction = myItem.Actions.Add