CreateShortcut method
Creates a shortcut for a master.
Version added
2000
Syntax
| |
objRet |
The new MasterShortcut object. |
object |
Required. An expression that returns a Master object. |
Remarks
The new master shortcut is created in the same document as the target master and is added to the document's MasterShortcuts collection. The document must therefore be editable for this method to succeed.
The new shortcut's name is "Shortcut to X", where "X" is the name of the target master. The shortcut's TargetDocumentName and TargetMasterName properties identify the target master. So once a shortcut has been created, it can be moved or copied into other documents.
You cannot create a shortcut to a master in an unsaved stencil. If you try to do so, the CreateShortcut method returns an error.