Use GroupItems ( index), where index is the shape name or the index number within the group, to return a Shape object that represents a single shape in a grouped shape. The following example adds a rectangle to the active document. To add a Shape object to the collection of shapes for the specified document and return a Shape object that represents the newly created shape, use one of the following methods of the Shapes collection: AddCallout, AddCurve, AddLabel, AddLine, AddOleControl, AddOleObject, AddPolyline, AddShape, AddTextbox, AddTextEffect, or BuildFreeForm. The following example sets the fill for all the shapes in the selection, assuming that the selection contains at least one shape.
![big word callout shapes big word callout shapes](http://www.word-2013-tutorials.com/wp-content/uploads/2013/11/insert-callout.gif)
The following example sets the fill for the first shape in the selection, assuming that the selection contains at least one shape. Use ShapeRange ( index), where index is the name or the index number, to return a Shape object that represents a shape within a selection. To give a shape a more meaningful name, set the Name property. For example, if you add three different shapes to a document, they might be named Rectangle 2, TextBox 3, and Oval 4. ActiveDocument.Shapes("Rectangle 1").Flip msoFlipHorizontalĮach shape is assigned a default name when it is created. The following example horizontally flips the shape named Rectangle 1 on the active document. ActiveDocument.Shapes(1).Flip msoFlipHorizontal The following example horizontally flips shape one on the active document. Use Shapes ( index), where index is the name or the index number, to return a single Shape object. If you want to work with several shapes at the same time or with shapes within the selection, use a ShapeRange collection. There are three objects that represent shapes: the Shapes collection, which represents all the shapes on a document the ShapeRange object, which represents a specified subset of the shapes on a document (for example, a ShapeRange object could represent shapes one and four on the document, or it could represent all the selected shapes on the document) and the Shape object, which represents a single shape on a document.
![big word callout shapes big word callout shapes](https://www.tutorialspoint.com/microsoft_visio/images/end_process.jpg)
You can position the shape anywhere on the page that contains the anchor. RemarksĪ shape is always attached to an anchoring range. The Shape object is a member of the Shapes collection, which includes all the shapes in the main story of a document or in all the headers and footers of a document. Represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, ActiveX control, or picture.