如果可为数据添加智能标记,则返回 True。Boolean 类型,可读写。
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