Shapes.AddPolyline (PowerPoint)
Creates an open polyline or a closed polygon drawing. Returns a Shape object that represents the new polyline or polygon.
To form a closed polygon, assign the same coordinates to the first and last vertices in the polyline drawing.
AddPolyline (SafeArrayOfPoints)
SafeArrayOfPoints: An array of coordinate pairs that specifies the polyline drawing's vertices.
Dim lngSafeArrayOfPoints() As Long: lngSafeArrayOfPoints() =
Dim shpAddPolyline As Shape
Set shpAddPolyline = ActiveWindow.Selection.SlideRange(1).Shapes.AddPolyline(SafeArrayOfPoints:=lngSafeArrayOfPoints())