Class OutlookBarStorage (Outlook VBA)

The class OutlookBarStorage represents the storage for objects in the Outlook Bar. To use a OutlookBarStorage class variable it first needs to be instantiated, for example


Dim obs as OutlookBarStorage
Set obs = ActiveExplorer.Panes(1).Contents

Class

Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for OlObjectClass.


Dim oocsClass As OlObjectClass
oocsClass = ActiveExplorer.Panes(1).Contents.Class

Groups

Returns an OutlookBarGroups object representing the set of groups in the Shortcuts pane.


Sub CountOlBarGroups()     Dim myOlBar As Outlook.OutlookBarPane     Dim myCount As Integer      Set myOlBar = Application.ActiveExplorer.Panes.Item("OutlookBar")     myCount = myOlBar.Contents.Groups.Count     MsgBox "There are " & myCount & " groups in the Shortcuts pane" End Sub

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: