全部显示

DisplaySmartTags 属性

       

返回或设置一个 XlSmartTagDisplayMode 常量,该常量指示智能标记的显示特征。可读写。

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