April 2006
Beginner
1114 pages
98h 16m
English
Application.AddChartAutoFormat(Chart, Name, [Description])
Creates a new chart type based on an existing chart.
|
Argument |
Setting |
|---|---|
|
|
A chart object to get formatting from |
|
|
The name to add to the chart autoformat list |
|
|
A description of the chart type |
The following code adds a custom chart type to Excel based on an existing chart in the current workbook:
Sub TestAddChartType( )
Application.AddChartAutoFormat Charts(1), _
"new custom", "my description"
End SubTo see the new chart type, select some data on a worksheet and choose Insert → Chart → Custom Types → User Defined.
Read now
Unlock full access