SmartTagOptions Property

Microsoft Excel Visual Basic

object representing the options that can be performed with a smart tag.

expression.SmartTagOptions

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel notifies the user of the display settings for the smart tag options.

Sub CheckSmartTagOptions()

    ' 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