Share via


OutlookBarPane.Visible Property

Outlook Developer Reference

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/Visual Basic for Applications (VBA) example toggles the visible state of the Shortcuts pane.

Visual Basic for Applications
  Sub ShowHideShortcutsBar()
    Dim myOlBar As Outlook.OutlookBarPane
Set myOlBar = Application.ActiveExplorer.Panes.Item("OutlookBar")
myOlBar.<strong class="bterm">Visible</strong> = Not myOlBar.<strong class="bterm">Visible</strong>

End Sub

See Also