|Outlook Developer Reference|
expression A variable that represents an OutlookBarPane object.
|Shortcut||Required||OutlookBarShortcut||The shortcut that the user clicked.|
|Cancel||Required||Boolean||False when the event occurs. If the event procedure sets this argument to True, the current folder is not changed.|
This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).
This Microsoft Visual Basic/Visual Basic for Applications (VBA) example prevents the user from using the Shortcuts pane to open the Notes folder. The sample code must be placed in a class module, and the
Initialize_handler routine must be called before the event procedure can be called by Microsoft Outlook. If you do not have a shortcut to the Notes folder already, you need to create one to run this example.
|Visual Basic for Applications|