Task.ID property (Project)
Gets the identification number of a task. Read-only Long.
expression.ID
expression An expression that returns a Task object.
The ID property changes when a task moves to a new location in a view such as the Gantt Chart or Task Sheet. Use the UniqueID property if you want a constant reference to a task.
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.