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 OlPane 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

See also

Explorer Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.