This documentation is archived and is not being maintained.

ShowPane Method


This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.  

Displays or hides a specific pane in the explorer.

Note   You can also use the Visible property of the OutlookBarPane object to display or hide the Outlook Bar.

expression.ShowPane(Pane, Visible)

expression   Required. An expression that returns an Explorer object.

Visible   Required. True to make the pane visible, False to hide the pane.

Example

This Microsoft Visual Basic/Visual Basic for Applications example uses the ShowPane and IsPaneVisible methods to hide the preview pane if it is visible, or to display it if it is hidden.

Dim myOlApp As New Outlook.Application
Dim myOlExp As Outlook.Explorer
Set myOlExp = myOlApp.ActiveExplorer
myOlExp.ShowPane olPreview, _
    Not myOlExp.IsPaneVisible(olPreview)

If you use VBScript, you do not create the Application object. This example shows how to perform the same task using VBScript.

Set myOlExp = Application.ActiveExplorer
myOlExp.ShowPane 3, Not myOlExp.IsPaneVisible(3)
Show: