Application.ResetTPStyle method (Project)

Resets the specified Team Planner style to the default values.

Syntax

expression.ResetTPStyle (Style)

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
Style Required PjTeamPlannerStyle Can be one of the PjTeamPlannerStyle constants.

Return value

Boolean

Remarks

The PjTeamPlannerStyle constants are equivalent to the five styles shown in the Format tab of the Team Planner Tools in the ribbon, as follows:

Constant Style
pjTPActualWork Actual Work
pjTPLateTask Late Task
pjTPManualTask Manually Scheduled
pjTPScheduledWork Auto Scheduled
pjTPSRA External Task

Example

The following line of code resets the border color and fill color of auto-scheduled assignments in the Team Planner to their default values.

ResetTPStyle Style:=pjTPScheduledWork

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.