Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.07 KB

Project.Project.GetTaskIndexByGuid.md

File metadata and controls

53 lines (30 loc) · 1.07 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.GetTaskIndexByGuid method (Project)
project-server
Project.Project.GetTaskIndexByGuid
6887241c-9daf-385b-42a2-7a82b37c8da7
06/08/2017
medium

Project.GetTaskIndexByGuid method (Project)

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

Syntax

expression. GetTaskIndexByGuid( _TaskGuid_ )

expression A variable that represents a Project object.

Parameters

Name Required/Optional Data type Description
TaskGuid Required String The 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

[!includeSupport and feedback]