title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
OutlookBarStorage.Groups property (Outlook) |
vbaol11.chm372 |
|
|
9b324d3d-3ab6-1e24-962f-19812b6b8ed0 |
06/08/2017 |
medium |
Returns an OutlookBarGroups object representing the set of groups in the Shortcuts pane. Read-only.
expression. Groups
expression A variable that represents an OutlookBarStorage object.
The following Microsoft Visual Basic for Applications (VBA) example displays the number 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
[!includeSupport and feedback]