Creates a line. Returns a Shape object that represents the new line.
Syntax
expression.AddLine(BeginX, BeginY, EndX, EndY, Anchor)
expression Required. An expression that returns a Shapes collection.
BeginX, BeginY Required Single. The position (in points) of the line's starting point, relative to the anchor.
EndX, EndY Required Single. The position (in points) of the line's end point, relative to the anchor.
Anchor Optional Variant. A Range object that represents the text to which the line is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the line is positioned relative to the top and left edges of the page.
Remarks
To create an arrow, use the Line property to format a line.