Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.16 KB

Project.chart.charttype.md

File metadata and controls

57 lines (33 loc) · 1.16 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Chart.ChartType property (Project)
project-server
c2557457-8aab-dec9-8098-e14b31a87c4f
06/08/2017
medium

Chart.ChartType property (Project)

Gets or sets the chart type. Read/write Office.XlChartType.

Syntax

expression.ChartType

expression A variable that represents a Chart object.

Remarks

The ChartType property corresponds to an action in the Change Chart Type dialog box. The command is on the ribbon under CHART TOOLS, on the DESIGN tab.

Example

The following example changes a clustered column chart to a clustered 3D column chart type.

Sub SwitchChartTo3D()
    Dim chartShape As Shape
    
    Set chartShape = ActiveProject.Reports("Simple scalar chart").Shapes(1)
    
    With chartShape.Chart
        Debug.Print .ChartType
        
        If .ChartType = xlColumnClustered Then
            .ChartType = xl3DColumnClustered
        End If
    End With
End Sub

Property value

XLCHARTTYPE

See also

Chart Object

[!includeSupport and feedback]