Add Method (OutlookBarShortcuts Collection)

Add Method (OutlookBarShortcuts Collection)

See Also         Example         Applies To        

Adds a new shortcut to a group in the Outlook Bar and returns the new shortcut as an OutlookBarShortcut object.

Syntax

object.Add(Target, Name[, Index])

object   Required. An expression that returns an OutlookBarShortcuts collection object.

Target   Required Variant. The target of the shortcut being created.

Name   Required String. The name of the shortcut being created.

Index   Optional Long. The position at which the new shortcut will be inserted in the Outlook Bar group. Position 0 is at the top of the group.

Remarks

The Target type depends on the shortcut type. If the type is MAPIFolder, the shortcut represents a Microsoft Outlook folder. If the type is a String, the shortcut represents a file-system path or a URL.