ShapeNodes.SetSegmentType (PowerPoint)

Sets the segment type of the segment that follows the specified node.

If the node specified by Index is a control point for a curved segment, this method sets the segment type for that curve. Note that this may affect the total number of nodes by inserting or deleting adjacent nodes. The SegmentType parameter value can be one of these MsoSegmentType constants.

Syntax : expression.SetSegmentType (Index, SegmentType)

With ActivePresentation.Slides(1).Shapes(3).Nodes
    n = 1
    While n <= .Count
        If .Item(n).SegmentType = msoSegmentLine Then
            .SetSegmentType n, msoSegmentCurve
        End If
        n = n + 1
    Wend
End With

Arguments

The following arguments are required:

Index (Long) - The node whose segment type is to be set.

SegmentType (Office.MsoSegmentType) - Specifies if the segment is straight or curved.