Class OutlookBarPane (Outlook VBA)
The class OutlookBarPane represents the Shortcuts pane in an explorer window. To use a OutlookBarPane class variable it first needs to be instantiated, for example
Class
Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for
Dim oocsClass As OlObjectClass
oocsClass = ActiveExplorer.Panes(1).Class
Contents
Returns the OutlookBarStorage object for the specified Outlook Bar pane.
Sub ListGroups()
Dim myOlBar As Outlook.OutlookBarPane
Dim myOlGroups As Outlook.OutlookBarGroups
myMsg = "The groups in the Outlook Bar are:"
Set myOlBar = Application.ActiveExplorer.Panes.Item("OutlookBar")
Set myOlGroups = myOlBar.Contents.Groups
For x = 1 To myOlGroups.Count
myMsg = myMsg & Chr(13) & myOlGroups.Item(x)
Next x
MsgBox myMsg
End Sub
Name
Returns a String value that represents the display name for the object.
Dim strName As String
strName = ActiveExplorer.Panes(1).Name
Session
Returns the NameSpace object for the current session.
The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements do the same function:
Visible
Returns or sets a Boolean indicating the visible state of the specified 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.
ActiveExplorer.Panes(1).Visible = True