Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.TimescaleNonWorking Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets the format of nonworking times.

Syntax

expression. TimescaleNonWorking( ** Draw, ** Calendar, ** Color, ** Pattern )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
DrawOptionalIntegerHow nonworking times are denoted in relation to Gantt bars. Can be one of the following PjNonWorkingPlacement constants: pjBehind, pjInFront, or pjDoNotDraw.
CalendarOptionalStringThe name of the calendar to format.
ColorOptionalIntegerThe color of nonworking times. Can be one of the PjColor constants.
PatternOptionalIntegerThe pattern for nonworking times. Can be one of the PjFillPattern constants.

Return Value

Boolean

Remarks

Using the TimescaleNonWorking method without specifying any arguments displays the Timescale dialog box with the Non-working Time tab selected.

To set nonworking time format by using a hexadecimal RGB value for color, see TimescaleNonWorkingEx.

Example

The following example draws nonworking time behind the task bars in red.

Sub Timescale_NonWorking() 
 'Sets nonworking time behind the task bars to red. 

 'Activate Gantt Chart. 
 ViewApply Name:="&;Gantt Chart" 
 TimescaleNonWorking Draw:=pjBehind, Color:=pjRed 
End Sub
© 2018 Microsoft