Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.07 KB

Project.chart.chartstyle.md

File metadata and controls

56 lines (33 loc) · 1.07 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Chart.ChartStyle property (Project)
project-server
e90f17dd-b9a8-4da1-d66a-2940e47953b5
06/08/2017
medium

Chart.ChartStyle property (Project)

Gets or sets the chart style for a chart. Read/write Variant.

Syntax

expression. ChartStyle

expression A variable that represents a Chart object.

Remarks

Use a number from 1 to 48 to set the chart style.

Example

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

Property value

VARIANT

See also

Chart Object

[!includeSupport and feedback]