SmartTagRecognizer Object

Microsoft Excel Visual Basic

SmartTagRecognizer Object

         
SmartTagRecognizers SmartTagRecognizer

Represents recognition engines which label data with types of information as you work in Microsoft Excel.

Using the SmartTagRecognizer object

Use the Item(index) property of the SmartTagRecognizers collection to return a single SmartTagRecognizer object.

Once a SmartTagRecognizer object is returned, you can determine if smart tag recognizers are enabled for the application. This example determines if smart tag recognizers are enabled and notifies the user.

Sub Check_SmartTagRecognizers()

    ' Determine if smart tag recognizers are enabled.
    If Application.SmartTagRecognizers.Item(1).Enabled = True Then
        MsgBox "Smart tag recognizers are enabled."
    Else
    	MsgBox "Smart tag recognizers are not enabled."
    End If

End Sub