Application.PanZoomPanTo method (Project)

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

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 (PERT chart) 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, 2012.

PanZoomPanTo Start:="3/18/2012" 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.