Application.ZoomCalendar Method

Project Developer Reference

Zooms in on or out from the Calendar.

Syntax

expression.ZoomCalendar(NumWeeks, StartDate, EndDate)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
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.

Return Value
Boolean

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.

Visual Basic for Applications
  Sub FourWeekCalendar()
    ZoomCalendar NumWeeks:=4
End Sub

See Also