Application.TimelineGotoSelectedTask method (Project)

When a task is selected in the Timeline view, TimelineGotoSelectedTask selects the same task in the main view.

Syntax

expression. TimelineGotoSelectedTask

expression An expression that returns an Application object.

Return value

Boolean

Remarks

The TimelineGotoSelectedTask method corresponds to the Go to Selected Task command on the option menu in the Timeline view. After you run the TimelineGotoSelectedTask method, the Timeline view remains the active view.

If a single task is not selected in the Timeline view, or if the Timeline view is not active, the TimelineGotoSelectedTask method results in run-time error 1100, "The method is not available in this situation."

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.