ZoomCalendar Method

Zooms in on or out from the Calendar.

Syntax

expression**.ZoomCalendar(NumWeeks, StartDate, EndDate)**

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

NumWeeks    Optional Long. The number of weeks to display. If StartDate and EndDate are specified, NumWeeks is ignored.

StartDate    Optional Variant. The first date to display.

EndDate    Optional Variant. The last date to display.

Remarks

Using the ZoomCalendar method without specifying any arguments displays the Zoom dialog box.

Example

The following example displays four weeks at a time in the Calendar view.

Sub FourWeekCalendar()
    ZoomCalendar NumWeeks:=4
End Sub

Applies to | Application Object

See Also | CalendarBarStyles Method | CalendarDateBoxes Method | CalendarDateShading Method | CalendarDateShadingEdit Method | CalendarTaskList Method | CalendarTimescale Method | CalendarWeekHeadings Method