Calendar.Reset Method

Project Developer Reference

Resets base calendar properties to their default values; resets resource calendar properties to the values in the corresponding base calendar.

Syntax

expression.Reset

expression   A variable that represents a Calendar object.

Example
The following example resets every resource calendar in the active project.

Visual Basic for Applications
  Sub ResetResourceCalendars()
Dim R As Resource   ' Resource object used in For Each loop

For Each R In ActiveProject.Resources
    R.Calendar.<strong class="bterm">Reset</strong>
Next R

End Sub

See Also