편집

다음을 통해 공유


Chart.ChartWizard Method

Definition

Modifies the properties of the given chart. You can use this method to quickly format a chart without setting all the individual properties. This method is non-interactive, and it changes only the specified properties.

public void ChartWizard (object Source, object Gallery, object Format, object PlotBy, object CategoryLabels, object SeriesLabels, object HasLegend, object Title, object CategoryTitle, object ValueTitle, object ExtraTitle);
abstract member ChartWizard : obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj -> unit
Public Sub ChartWizard (Optional Source As Object, Optional Gallery As Object, Optional Format As Object, Optional PlotBy As Object, Optional CategoryLabels As Object, Optional SeriesLabels As Object, Optional HasLegend As Object, Optional Title As Object, Optional CategoryTitle As Object, Optional ValueTitle As Object, Optional ExtraTitle As Object)

Parameters

Source
Object

Optional Object the range that contains the source data for the new chart. If this argument is omitted, Microsoft Word edits the active chart sheet or the selected chart on the active worksheet.

Gallery
Object

Optional Object contains one of the constants of XlChartType specifying the chart type.

Format
Object

Optional Object the option number for the built-in autoformats. Can be a number from 1 through 10, depending on the gallery type. If this argument is omitted, Microsoft Word chooses a default value based on the gallery type and data source.

PlotBy
Object

Optional Object specifies whether the data for each series is in rows or columns. Can be one of the following XlRowCol constants: xlRows or xlColumns.

CategoryLabels
Object

Optional Object contains an Integer specifying the number of rows or columns within the source range that contain category labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series.

SeriesLabels
Object

Optional Object contains an Integer specifying the number of rows or columns within the source range that contain series labels. Legal values are from 0 (zero) through one less than the maximum number of the corresponding categories or series.

HasLegend
Object

Optional Object set to True to include a legend.

Title
Object

Optional Object the chart title text.

CategoryTitle
Object

Optional Object the category axis title text.

ValueTitle
Object

Optional Object the value axis title text.

ExtraTitle
Object

Optional Object the series axis title for 3-D charts or the second value axis title for 2-D charts.

Remarks

If Source is omitted and the selection isn't a chart on the active document, this method fails and an error occurs.

Applies to