SmartTagActions Property

Microsoft Word Visual Basic

SmartTagActions Property

Returns a SmartTagActions collection that represents the collection of actions available on a smart tag.

expression.SmartTagActions

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following code returns a collection of SmartTagAction objects associated with the Address smart tag, and then it uses the ReloadActions method to reload actions for each smart tag in the returned collection.

    Dim objSmartTag As SmartTag
Dim objSmartTags As SmartTags
Dim strSmartTagName As String
   
strSmartTagName = "urn:schemas-microsoft-com" & _
    ":office:smarttags#address"
    
Set objSmartTags = ActiveDocument.SmartTags _
    .SmartTagsByType(strSmartTagName)
    
For Each objSmartTag In objSmartTags
    objSmartTag.SmartTagActions.ReloadActions
Next