Share via


Task.Calendar Property

Project Developer Reference

Returns or sets the calendar to be used when scheduling the task. Read/write String.

Syntax

expression.Calendar

expression   A variable that represents a Task object.

Return Value
String

Remarks

The Calendar property does not return any meaningful information for material resources. Setting a value returns a trappable error (error code 1101) when applied to material resources.

Example
The following example resets the calendar for the active project.

Visual Basic for Applications
  Sub ResetActiveProjectCalendar()
    ActiveProject.Calendar.Reset
End Sub

See Also