Share via


Reset Method

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

Syntax

expression**.Reset**

*expression   *     Required. An expression that returns a Calendar object.

Example

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

Sub ResetResourceCalendars()

    Dim R As Resource   ' Resource object used in For Each loop

    For Each R In ActiveProject.Resources
        R.Calendar.Reset
    Next R
    
End Sub

Applies to | Calendar Object, Calendars Collection Object

See Also | Default Method | Working Property