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

Project.SetObjectMatchingID Method (Project)

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

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

Syntax

expression. SetObjectMatchingID( ** ObjectType, ** ObjectName, ** MatchingID** )

expression A variable that represents a Project object.

Parameters

NameRequired/OptionalData TypeDescription
ObjectTypeRequiredLongThe type of object, specified by a pjOrganizer constant.
ObjectNameRequiredStringDisplay name of the object.
MatchingIDRequiredStringString 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".

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