Explorer.ViewSwitch Event
Outlook Developer Reference |
Occurs when the view in the explorer changes, either as a result of user action or through program code.
Syntax
expression.ViewSwitch
expression A variable that represents an Explorer object.
Remarks
This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).
Example
This Visual Basic for Applications (VBA) example hides the preview pane if it is visible when the user switches to Messages with AutoPreview view. 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.
Visual Basic for Applications |
---|
|
See Also