Share via


Explorer.ShowPane Method

Outlook Developer Reference

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 OlPane The pane to display.
Visible Required Boolean True to make the pane visible, False to hide the pane.

Remarks

Bb219931.vs_note(en-us,office.12).gif  Note
You can also use the Visible property of the OutlookBarPane object to display or hide the Shortcuts pane.

Example

This Microsoft Visual Basic/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.

Visual Basic for Applications
  Sub ShowHidePreviewPane()
    Dim myOlExp As Outlook.Explorer
Set myOlExp = Application.ActiveExplorer
myOlExp.<strong class="bterm">ShowPane</strong> olPreview, _
    Not myOlExp.IsPaneVisible(olPreview)

End Sub

See Also