返回或设置一个 XlSmartTagDisplayMode 常量,该常量指示智能标记的显示特征。可读写。
XlSmartTagDisplayMode 可为以下 XlSmartTagDisplayMode 常量之一。 |
xlButtonOnly 只显示智能标记的按钮。 |
xlDisplayNone 对智能标记不显示任何内容。 |
xlIndicatorAndButton 显示智能标记的指示器和按钮。 |
expression.DisplaySmartTags
expression 必需。该表达式返回“应用于”列表中的对象之一。
在本示例中,Microsoft Excel 确定用于显示智能标记的设置,并通知用户。
Sub CheckDisplayOptions()
' Check the display options for smart tags.
Select Case ActiveWorkbook.SmartTagOptions.DisplaySmartTags
Case xlButtonOnly
MsgBox "The button for smart tags will only be displayed."
Case xlDisplayNone
MsgBox "Nothing will be displayed for smart tags."
Case xlIndicatorAndButton
MsgBox "The button and indicator will be displayed for smart tags."
End Select
End Sub