Remarks

Use the method to return a FreeformBuilder object. Use the method to add nodes to the freefrom. Use the method to create the shape defined in the FreeformBuilder object and add it to the collection.

Example

The following example adds a freeform with four segments to myDocument.

Visual Basic for Applications
Set myDocument = Worksheets(1) With myDocument.Shapes.BuildFreeform(msoEditingCorner, 360, 200) .AddNodes msoSegmentCurve, msoEditingCorner, _ 380, 230, 400, 250, 450, 300 .AddNodes msoSegmentCurve, msoEditingAuto, 480, 200 .AddNodes msoSegmentLine, msoEditingAuto, 480, 400 .AddNodes msoSegmentLine, msoEditingAuto, 360, 200 .ConvertToShape End With
Freeform Builder Object FreeformBuilder freeformbuilder object

See also: