Project.SetObjectMatchingID Method

Project Developer Reference

Sets the Matching ID of an object.

Syntax

expression.SetObjectMatchingID(ObjectType, ObjectName, MatchingID)

expression   A variable that represents a Project object.

Parameters

Name Required/Optional Data Type Description
ObjectType Required Long The type of object, specified by a pjOrganizer constant.
ObjectName Required String Display name of the object.
MatchingID Required String String specifying the Matching ID to set.

Example

The following example sets the Matching ID of a pjView object type with the display name "Gantt Chart" to "Gantt Chart 1".

Visual Basic for Applications
  ActiveProject.SetObjectMatchingID ObjectType:=pjView, ObjectName:="Gantt Chart", MatchingID:="Gantt Chart 1"

See Also