Expand Minimize

Project.SetObjectMatchingID Method (Project)

Sets the matching identification value of an object in the Organizer dialog box, for example to change the view specified by "Gantt Chart".

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.

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

ActiveProject.SetObjectMatchingID ObjectType:=pjView, ObjectName:="Gantt Chart", MatchingID:="Gantt Chart 1"
Show:
© 2014 Microsoft