Outlook) (OutlookBarStorage.Groups 屬性
會傳回 OutlookBarGroups 物件,代表 [快捷方式 ] 窗格中的群組集合。 唯讀。
語法
expression。 Groups
表達 代表 OutlookBarStorage 物件的 變數。
範例
下列 Microsoft Visual Basic for Applications (VBA) 範例會顯示 [快捷方式 ] 窗格中的群組數目。
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
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。