OptionsCalendar Method

Sets options for the calendar of the active project.

Syntax

expression**.OptionsCalendar(StartWeekOnMonday, StartYearIn, StartTime, FinishTime, HoursPerDay, HoursPerWeek, SetDefaults, StartWeekOn, UseFYStartYear, DaysPerMonth)**

*expression   *     Optional. An expression that returns an Application object.

StartWeekOnMonday    Optional Boolean. True if the calendar week starts on Monday. False if the calendar week starts on Sunday. If StartWeekOn is specified, StartWeekOnMonday is ignored. (The StartWeekOn argument is a better way to specify the start of the week.)

PjMonth

pjJanuary pjJuly
pjFebruary pjAugust
pjMarch pjSeptember
pjApril pjOctober
pjMay pjNovember
pjJune pjDecember

StartTime    Optional Variant. The default start time for working days.

FinishTime    Optional Variant. The default finish time for working days.

HoursPerDay    Optional Double. The default number of work hours per day.

HoursPerWeek    Optional Double. The default number of work hours per week.

SetDefaults    Optional Boolean. True if the values of StartYearIn, StartTime, FinishTime, HoursPerDay, HoursPerWeek, StartWeekOn, and UseFYStartYear are used as the default values for new projects. The default value is False.

StartWeekOn    Optional Long. The first day of the week. Can be one of the following PjWeekday constants: pjSunday, pjMonday, pjTuesday, pjWednesday, pjThursday, pjFriday, or pjSaturday.

UseFYStartYear    Optional Boolean. True if a fiscal year is determined by the year of the first month of that fiscal year. False if determined by the last month of the fiscal year.

DaysPerMonth    Optional Double. The default number of work days per month.

For example, if StartYearIn was pjJuly (to denote July 2000) and UseFYStartYear was True, the fiscal year ending in June 2000 would be FY99.

Remarks

If an argument is omitted, its default value is specified by the current setting on the Calendar tab of the Options dialog box.

Using the OptionsCalendar method without specifying any arguments displays the Options dialog box with the Calendar tab selected.

Applies to | Application Object

See Also | OptionsEdit Method | OptionsGeneral Method | OptionsSave Method | OptionsSchedule Method | OptionsSpelling Method | OptionsView Method | OptionsWorkgroup Method