Shape.Duplicate Method
PowerPoint Developer Reference |
Creates a duplicate of the specified Shape object, adds the new shape to the Shapes collection, and then returns a new ShapeRange object. The duplicated objects are placed at the end of the Shapes collection.
Syntax
expression.Duplicate
expression A variable that represents a Shape object.
Return Value
ShapeRange
Example
This example adds a new, blank slide at the end of the active presentation, adds a diamond shape to the new slide, duplicates the diamond, and then sets properties for the duplicate. The first diamond will have the default fill color for the active color scheme; the second diamond will be offset from the first one and will have the default shadow color.
Visual Basic for Applications |
---|
|
See Also