Share via


Application.BaseCalendarReset Method

Project Developer Reference

Resets a base calendar.

Syntax

expression.BaseCalendarReset(Name)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Name Required String String. The name of the base calendar to reset.

Return Value
Boolean

Remarks

Base calendars have the following default characteristics:

  • Monday through Friday are working days with two shifts (8 A.M. to 12 P.M. and 1 P.M. to 5 P.M.).
  • Saturday and Sunday are nonworking days.

Example
The following example resets the Standard base calendar to the default settings.

Visual Basic for Applications
  Sub RestoreBaseCalendar()
    BaseCalendarReset Name:="Standard"
End Sub

See Also