Chart.PlotVisibleOnly Property (Project)
True if only visible cells are plotted. False if both visible and hidden cells are plotted. Read/write Boolean.
expression A variable that represents a 'Chart' object.
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
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.