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

OutlookBarPane 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.