Recognize Property

Microsoft Excel Visual Basic

expression.Recognize

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

Example

In this example, Microsoft Excel determines if the ability to label data as smart tags is enabled and notifies the user.

Sub CheckSmartTagRecognition()

    ' Determine if data can be labeled as SmartTags.
    If Application.SmartTagRecognizers.Recognize = True Then
        MsgBox "Background smart tag recognition is turned on."
    Else
        MsgBox "Background smart tag recognition is turned off."
    End If

End Sub