VisUniqueIDArgs Enumeration (Visio)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

Show: