Syntax

expression.ConvertToShape

expression A variable that represents a FreeformBuilder object.

Return Value
Shape

Remarks

You must apply the method to a FreeformBuilder object at least once before you use the ConvertToShape method.

Example

This example adds a freeform with five vertices 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
Change freeform into shape? convert Convert a series of nodes to a new shape? convert to shape Convert To Shape Method ConvertTo ConvertToShape converttoshape method Create a shape that has the geometric characteristics of the specified freeform?

See also: