Selection.SmartTags Property

Word Developer Reference

Returns a SmartTags object that represents a smart tag in a selection. Read-only.

Syntax

expression.SmartTags

expression   An expression that returns a Selection object.

Return Value
SmartTags

Example
This example adds custom properties to the first smart tag in the selected text.

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

See Also