Shapes.AddChart2 (Word)
Adds a chart to the document. Returns a Shape object that represents a chart and adds it to the specified collection.
AddChart2 (Style, Type, Left, Top, Width, Height, Anchor, NewLayout)
Dim shpAddChart2 As Shape
Set shpAddChart2 = Selection.HeaderFooter.Shapes.AddChart2()
Arguments
Optional arguments
The following arguments are optional
Style (Long) - The chart style. Use "-1" to get the default style for the chart type specified in Type.
Type (Office.XlChartType) - The type of chart.
Left (Long) - The position, in points, of the left edge of the chart, relative to the anchor.
Top (Long) - The position, in points, of the top edge of the chart, relative to the anchor.
Width (Long) - The width, in points, of the chart.
Height (Long) - The height, in points, of the chart.
Anchor (Range) - A Range object that represents the text to which the canvas 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 canvas is positioned relative to the top and left edges of the page.
NewLayout (Boolean) - If NewLayout is True, the chart will be inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).