Chart.PlotVisibleOnly property (Project)

True if only visible cells are plotted. False if both visible and hidden cells are plotted. Read/write Boolean.

Syntax

expression.PlotVisibleOnly

expression A variable that represents a Chart object.

Example

The following example causes Project to plot only visible cells in the chart.

Sub PlotVisible()
    Dim chartShape As Shape
    Dim reportName As String
    
    reportName = "Simple scalar chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    Debug.Print chartShape.Chart.PlotVisibleOnly
    chartShape.Chart.PlotVisibleOnly = True
End Sub

Property value

BOOL

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.