Document.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 Document object.

Example

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

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

See Also