MasterShortcut.TargetMasterName property (Visio)

Gets or sets the name of the master to which the master shortcut refers. Read/write.

Syntax

expression. TargetMasterName

expression A variable that represents a MasterShortcut object.

Return value

String

Remarks

The name specified by this property must be the target master's universal name, not its localized name. For a given master, the universal name is specified by the master's NameU property, and the local name by its Name property.

When the user drops a master shortcut onto a drawing page, the application first locates the document identified by the shortcut's TargetDocumentName property, and then it searches that document for a master whose universal name matches the shortcut's TargetMasterName property. Once located, the target master (not the shortcut) is used to create the new shape instance on the drawing page.

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.