AddVertex Method

Applies To

Drawing Object.

Description

Adds a vertex to the end of the drawing.

Syntax

object.AddVertex(left, top)

object

Required. The Drawing object.

left

Required. The left position of the new vertex in points (1/72 inch), relative to the upper left corner of the sheet.

top

Required. The top position of the new vertex in points, relative to the upper left corner of the sheet.

See Also

Add Method (Drawings Collection), Reshape Method.

Example

This example creates a new open trapezoid on Sheet1.


With Worksheets("Sheet1").Drawings.Add(100, 100, 200, 100, False)
    .AddVertex 180, 200
    .AddVertex 80, 200
    .AddVertex 100, 100
    .Border.Weight = xlMedium
End With