Modifica

Condividi tramite


Tag.Value property (Publisher)

Returns or sets a Variant that represents the value of a tag of a shape, page, or publication. Read/write.

Syntax

expression.Value

expression A variable that represents a Tag object.

Example

This example creates a new tag for the active publication and then displays the value of the tag.

Sub CreatePublicationTag() 
 With ActiveDocument 
 .Tags.Add Name:="ActivePub", Value:="This is the active publication." 
 MsgBox .Tags(1).Value 
 End With 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.