Partager via


OutlookBarPane.Visible Property (Outlook)

Returns or sets a Boolean indicating the visible state of the specified object. Read/write.

Syntax

expression .Visible

expression A variable that represents an OutlookBarPane object.

Remarks

True to display the object; False to hide the object.

You can also use the ShowPane method or the IsPaneVisible method of an Explorer object to set or retrieve this value.

Example

This Microsoft Visual Basic for Applications (VBA) example toggles the visible state of the Shortcuts pane.

Sub ShowHideShortcutsBar() 
 
 Dim myOlBar As Outlook.OutlookBarPane 
 
 
 
 Set myOlBar = Application.ActiveExplorer.Panes.Item("OutlookBar") 
 
 myOlBar.Visible = Not myOlBar.Visible 
 
End Sub

See Also

Concepts

OutlookBarPane Object Members

OutlookBarPane Object