Outlook) (OutlookBarGroup.Shortcuts 属性

返回一个 OutlookBarShortcuts 集合的 快捷方式窗格中包含快捷方式。 此为只读属性。

语法

expressionShortcuts

表达 一个代表 OutlookBarGroup 对象的变量。

示例

此 Microsoft Visual Basic for Applications (VBA) 示例删除 快捷方式窗格中的所有空组。

Sub DeleteEmptyGroups() 
 Dim myOlBar As Outlook.OutlookBarPane 
 Dim myOlGroup As Outlook.OutlookBarGroup 
 Dim x As Integer 
 
 Set myOlBar = Application.ActiveExplorer.Panes.Item("OutlookBar") 
 For x = myOlBar.Contents.Groups.Count To 1 Step -1 
 Set myOlGroup = myOlBar.Contents.Groups.Item(x) 
 If myOlGroup.Shortcuts.Count = 0 Then 
 myOlBar.Contents.Groups.Remove x 
 End If 
 Next x 
End Sub

另请参阅

OutlookBarGroup 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。