Explorer.ShowPane Method (Outlook)
Displays or hides a specific pane in the explorer.
Syntax
expression .ShowPane(Pane, Visible)
expression A variable that represents an Explorer object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Pane |
Required |
The pane to display. |
|
Visible |
Required |
Boolean |
True to make the pane visible, False to hide the pane. |
Remarks
Note
You can also use the Visible property of the OutlookBarPane object to display or hide the Outlook Bar.
Example
This Microsoft Visual Basic for Applications (VBA) example uses the ShowPane and IsPaneVisible methods to hide the preview pane if it is visible or to display it if it is hidden.
Sub ShowHidePreviewPane()
Dim myOlExp As Outlook.Explorer
Set myOlExp = Application.ActiveExplorer
myOlExp.ShowPane olPreview, _
Not myOlExp.IsPaneVisible(olPreview)
End Sub