This documentation is archived and is not being maintained.

OutlookBarPane.Visible Property (Outlook)

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

expression .Visible

expression A variable that represents an OutlookBarPane object.

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.

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