Selection.Duplicate Method (Visio)
Published: July 16, 2012
Duplicates a selection.
The Duplicate method duplicates the specified object or selection and adds a copy to the same page as the original. Using the Duplicate method is equivalent to clicking Duplicate on the Paste menu on the Home tab.
When used with a Shape object, the Duplicate method duplicates the shape.
When used with a Selection object, the Duplicate method duplicates the selection.
The following example shows how to duplicate Shape objects. The code also works for Selection objects.
Before running this macro, make sure a drawing page is active in the Microsoft Visio window.