Chart.UpdateChartData method (Project)

Updates the specified Project data on a chart.

Syntax

expression.UpdateChartData (Task, Timephased, GroupName, FilterName, LabelField, OutlineLevel, SafeArrayOfPjField, SafeArrayOfPjTimescaledData, TimeScaleUnit, TimescaleUnitCount, StartDate, FinishDate)

expression A variable that represents a Chart object.

Parameters

Name Required/Optional Data type Description
Task Required Boolean True to update the task data; otherwise, False.
Timephased Required Boolean True to update the timephased data; otherwise, False.
GroupName Optional String The name of the Group2 object (a group of tasks or resources) for the update.
FilterName Optional String The name of the Filter object for the update.
LabelField Optional PjField Specifies the field for the update. Can be one of the PjField constants.
OutlineLevel Optional Integer Specifies the task outline level for the update. The default value is -1, which is all outline levels.
SafeArrayOfPjField Optional Variant Specifies an array of fields for the update, where each item in the array can be a PjField constant.
SafeArrayOfPjTimescaledData Optional Variant Specifies an array of timescaled data for the update, where each item in the array can be a PjTimescaledData constant.
TimeScaleUnit Optional PjTimescaleUnit Specifies a timescale unit for the update. Can be a PjTimescaledUnit constant. The default value is pjTimescaleDays.
TimescaleUnitCount Optional Long Specifies the number of timescale units to be included in the update. The default value is 1. For example, if the unit is pjTimescaleWeeks, a value of 5 indicates five weeks.
StartDate Optional Variant Specifies the start date for the update.
FinishDate Optional Variant Specifies the finish date for the update.

Return value

Nothing

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.