WeekDays Collection Object
Project Developer Reference |
Contains a collection of Weekday objects.
Example
Using the Weekday Object
Use Weekdays(Index), where Index is the weekday index number, three-letter abbreviation of the day name, or PjWeekday constant, to return a single Weekday object. The following example sets Friday (the sixth day of a week starting on Sunday) as a half-day by setting the start and finish times for the first shift and clearing the values of the second and third shifts.
Visual Basic for Applications |
---|
|
A much better way to return the same object is to use the predefined constant for Friday instead of the nonintuitive number 6. Thus, the first line of the preceding example would be as follows:
Visual Basic for Applications |
---|
|
Using the Weekdays Collection
Use the Weekdays property to return a Weekdays collection.
Visual Basic for Applications |
---|
|
See Also