Chart.HeightPercent property (Project)

Gets or sets the height of a 3D chart as a percentage of the chart width. Read/write Long.

Syntax

expression.HeightPercent

expression A variable that represents a Chart object.

Remarks

The HeightPercent value can be between 5 and 500 percent.

Example

The following example sets the height of the chart to 80 percent of its width. The example should be run on a 3D chart.

Sub SetHeightPercent()
    Dim chartShape As Shape
    Dim reportName As String
    
    reportName = "Simple 3D chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    chartShape.Chart.HeightPercent = 80
End Sub

Property value

INT

See also

Chart Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.