BeforeShortcutAdd Event

BeforeShortcutAdd Event

See Also         Example         Applies To        

Occurs before a new shortcut is added to a group in the Outlook Bar, either as a result of user action or through program code. This event is not available in VBScript.

Syntax

Sub object_BeforeShortcutAdd(Cancel as Boolean)

object   An expression that evaluates to an OutlookBarShortcuts collection object.

NewShortcut   Required. The OutlookBarShortcut that is being added.

Cancel   Optional. False when the event occurs. If the event procedure sets this argument to True, the shortcut is not added to the group.