title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.SegmentFillColor method (Project) |
vbapj.chm71 |
|
project-server |
|
3f943b8a-47e9-979a-4755-f7b021db6b0e |
06/08/2017 |
medium |
Sets the fill color for the assignment segments of a selected task in the Team Planner view.
expression. SegmentFillColor
( _Color_
)
expression An expression that returns an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Color | Required | Long | Fill color of the assignment segments. The color is a hexadecimal RGB value, where red is the last byte. |
Boolean
In the following example, a task is assigned to two resources. After selecting either of the assignments, running the ChangeSegmentColor macro shows all assignments for the task as light red with a blue border.
Sub ChangeSegmentColor()
Application.SegmentFillColor(&H8080FF)
Application.SegmentBorderColor(&HFF1010)
End Sub
[!includeSupport and feedback]