Share via


Application.ZoomTimescale Method

Project Developer Reference

Zooms in on or out from the Gantt Chart, Resource Graph, Resource Usage, or Task Usage view to show information about tasks or resources in a certain duration.

Syntax

expression.ZoomTimescale(Duration, Entire, Selection, Reset)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Duration Optional Variant The duration to display in the view.
Entire Optional Boolean True if the view resizes in order to fit the entire project onto the screen. The default value is False.
Selection Optional Boolean True if the view resizes in order to fit only the selected tasks onto the screen. The default value is False.
Reset Optional Boolean True if the view is reset to its default size. The default value is False.

Return Value
Boolean

Remarks

Except for the Resource Graph, where the entire view is affected, all zooming occurs in the nonentry portion of the active view.

Example
The following example attempts to fit the entire project onto the screen.

Visual Basic for Applications
  Sub Display()
    ZoomTimescale Entire:=True
End Sub

See Also