BeforeNavigate Event

BeforeNavigate Event

See Also         Example         Applies To        

Occurs when the user clicks on an Outlook Bar shortcut to navigate to a different folder. This event is not available in VBScript.

Syntax

Sub object_BeforeNavigate(Shortcut as OutlookBarShortcut, Cancel as Boolean)

object   An expression that evaluates to an OutlookBarPane object.

Shortcut   Required. The shortcut that the user clicked.

Cancel   Optional. False when the event occurs. If the event procedure sets this argument to True, the current folder is not changed.