ZoomTimescale Method
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 * Optional. An expression that returns an Application object.
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.
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.
Sub Display()
ZoomTimescale Entire:=True
End Sub
Applies to | Application Object
See Also | Zoom Method | ZoomCalendar Method | ZoomIn Method | ZoomOut Method