Table of contents
TOC
Collapse the table of content
Expand the table of content

Project.GetTaskIndexByGuid Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the local task identification number (ID) for the specified task.

Syntax

expression. GetTaskIndexByGuid( ** TaskGuid** )

expression A variable that represents a Project object.

Parameters

NameRequired/OptionalData TypeDescription
TaskGuidRequiredStringThe GUID of the task.

Return Value

Long

Remarks

The local task ID is the task index, which changes if the order of the task changes.

Example

If the ID of the specified task is 6, the following function returns the value 6.

Function TestTaskId() As Long 
 TestTaskId = ActiveProject.GetTaskIndexByGuid("341A479D-73A5-4209-9366-8EA2B836255B") 
End Function
© 2017 Microsoft