VisUniqueIDArgs enumeration (Visio)

Action codes to be passed to the Shape.UniqueID property.

Constant Value Description
visDeleteGUID 2 Clear the unique ID of a shape and return a zero-length string ("").
visDeleteGUIDWithUndo 4 Clear the unique ID of a shape and return a zero-length string (""). Undoable.
visGetGUID 0 Return the unique ID string only if the shape already has a unique ID.
visGetOrMakeGUID 1 Return the unique ID string of the shape. If the shape does not already have a unique ID, assign one to the shape and return the new ID.
visGetOrMakeGUIDWithUndo 3 Return the unique ID string of the shape. If the shape does not already have a unique ID, assign one to the shape and return the new ID. Undoable.

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.