Share via


Range.SmartTags Property

Word Developer Reference

Returns a SmartTags object that represents a smart tag in a document.

Syntax

expression.SmartTags

expression   Required. A variable that represents a Range object.

Example

This example adds custom properties to the first smart tag in the active document.

Visual Basic for Applications
  Sub NewSmartTagProperty()
    ActiveDocument.Range.SmartTags(1).Properties _
        .Add Name:="President", Value:=True
End Sub

See Also