Recognize 属性

       

如果可为数据添加智能标记,则返回 TrueBoolean 类型,可读写。

expression.Recognize

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

在本示例中,Microsoft Excel 判断是否可为数据添加智能标记,并通知用户。

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