Add Method (Tags Object)
Applies To
Tags object.
Description
Creates a tag for the specified object. If the tag already exists, this method replaces the existing tag value.
Syntax
expression.Add(Name, Value)
expression Required. An expression that returns a Tags object.
Name Required String. The new tag name. Use "name" as the string for this argument to set the value of the name tag.
Value Required String. The new tag value.
Remarks
The Tags object contains a pair of strings — the tag name and the tag value — for each tag. Use the Add method to create a tag, and use the Name and Value methods to return a tag's name and value components.
Example
This example adds a tag named "Priority" and sets the value of the name tag for slide one in the active presentation.
With Application.ActivePresentation.Slides(1).Tags
.Add "Name", "New Figures" 'Sets value for name tag
.Add "Priority", "Low" 'Adds "Priority" tag with value "Low"
End With