ChartObjects.Add Method
Creates a new embedded chart.
Syntax
expression.Add(Left, Top, Width, Height)
expression A variable that represents a ChartObjects object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Left | Required | Double | The initial coordinates of the new object (in points), relative to the upper-left corner of cell A1 on a worksheet or to the upper-left corner of a chart. |
| Width | Required | Double | The initial size of the new object, in points. |
Return Value
A ChartObject object that represents the new embedded chart.
Example
This example creates a new embedded chart..
| Visual Basic for Applications |
|---|
|