Occurs before a new group is opened 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_BeforeGroupSwitch(Group as OutlookBarGroup, Cancel as Boolean)
object An expression that evaluates to an OutlookBarPane object.
Group Required. The OutlookBarGroup being opened.
Cancel Optional. False when the event occurs. If the event procedure sets this argument to True, the change is cancelled and the current group remains open.