편집

다음을 통해 공유


Explorer.IsPaneVisible method (Outlook)

Returns a Boolean indicating whether a specific explorer pane is visible.

Syntax

expression. IsPaneVisible( _Pane_ )

expression A variable that represents an Explorer object.

Parameters

Name Required/Optional Data type Description
Pane Required OlPane The pane to check.

Return value

True if the specified pane is displayed in the explorer; otherwise, False.

Remarks

You can also use the Visible property of the OutlookBarPane object to determine whether the Shortcuts pane is visible.

Example

This Microsoft Visual Basic for Applications (VBA) sample uses the IsPaneVisible method to determine whether the preview pane is visible and uses the ShowPane method to display it if it is not visible. Use the olNavigationPane constant to hide or display the navigation pane.

Sub HidePreviewPane() 
 
 Dim myOlExp As Outlook.Explorer 
 
 Set myOlExp = Application.ActiveExplorer 
 
 If myOlExp.IsPaneVisible(olPreview) = False Then 
 
 myOlExp.ShowPane olPreview, True 
 
 End If 
 
 Set myOlExp = Nothing 
 
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.