title | ms.service | ms.assetid | ms.date | ms.localizationpriority |
---|---|---|---|---|
Chart.ChartStyle property (Project) |
project-server |
e90f17dd-b9a8-4da1-d66a-2940e47953b5 |
06/08/2017 |
medium |
Gets or sets the chart style for a chart. Read/write Variant.
expression. ChartStyle
expression A variable that represents a Chart object.
Use a number from 1 to 48 to set the chart style.
To use the following CycleThroughStyles method, make a chart active, and then set a breakpoint in the For … Next loop to observe the chart styles.
Sub CycleThroughStyles()
Dim chartShape As Shape
Dim reportName As String
Dim i As Integer
reportName = "Simple scalar chart"
Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
For i = 1 To 48
chartShape.Chart.ChartStyle = i
Next i
End Sub
VARIANT
[!includeSupport and feedback]