Creates a Shape with the specified position and shape type. The specified shape type must not be Picture, Group, Comment, or Unknown. The new shape is automatically added to the Shapes collection.

 public Shape CreateShape(ShapeType type, Anchor aPosition)
Public Function CreateShape(ByVal type As ShapeType, ByVal aPosition As Anchor) As Shape

A ShapeType value representing the type of shape to create.

An Anchor object representing the position of the new shape in the worksheet.

A Shape object representing the new shape.