Shapes.AddShape (PowerPoint)

Creates an AutoShape. Returns a Shape object that represents the new AutoShape.

To change the type of an AutoShape that you've added, set the AutoShapeType property.

Syntax : expression.AddShape (Type, Left, Top, Width, Height)

Dim shpAddShape As Shape
Set shpAddShape = ActiveWindow.Selection.SlideRange(1).Shapes.AddShape(Type:=msoShapeMixed, Left:=, Top:=, Width:=, Height:=)

Arguments

The following arguments are required:

Type (Office.MsoAutoShapeType) - Specifies the type of AutoShape to create.

Left (Single) - The position, measured in points, of the left edge of the AutoShape relative to the left edge of the slide.

Top (Single) - The position, measured in points, of the top edge of the AutoShape relative to the top edge of the slide.

Width (Single) - The width of the AutoShape, measured in points.

Height (Single) - The height of the AutoShape, measured in points.