Application.PanZoomPanTo Method (Project)

Pans the Gantt chart in the active view to the specified start date.

Version Information

Version Added: Project 2010

Syntax

expression .PanZoomPanTo(Start)

expression An expression that returns an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Start

Required

Variant

Specifies the start date for the left side of the Gantt chart.

Return Value

Nothing

Remarks

The PanZoomPanTo method has no effect on the Calendar view or Network Diagram view.

To zoom the Gantt chart in or out, which changes the timescale, use the PanZoomZoomTo method. To change the timescale format and labels, use the TimescaleEdit method.

Example

The following command moves the beginning of the visible Gantt chart to March 18, 2010.

                      PanZoomPanTo Start:="3/18/2010"