Duplicate method

Microsoft Visio Developer Reference

Duplicate method

       

Duplicates an object or selection.

Version added

2.0

Syntax

object.Duplicate

object

Required. An expression that returns a Selection or Shape object.

Remarks

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 Edit menu.

When used with a Shape object, the Duplicate method duplicates the shape.

When used with a Selection object, the Duplicate method duplicates the selection.