title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.ZoomCalendar method (Project) |
vbapj.chm2347 |
|
project-server |
|
fc02c827-11a0-380b-9e05-b4452246ff05 |
06/08/2017 |
medium |
Zooms in on or out from the Calendar.
expression. ZoomCalendar
( _NumWeeks_
, _StartDate_
, _EndDate_
)
expression A variable that represents an Application object.
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. |
Boolean
Using the ZoomCalendar method without specifying any arguments displays the Zoom dialog box.
The following example displays four rows of weeks within the active pane of the Calendar view.
Sub FourWeekCalendar()
ViewApply Name:="Calendar"
ZoomCalendar NumWeeks:=4
End Sub
[!includeSupport and feedback]