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

Application.ReassignSelectedAssns Method (Project)

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

Reassigns the selected assignments in the Team Planner view.

Syntax

expression. ReassignSelectedAssns( ** ResourceID** )

expression An expression that returns an Application object.

Parameters

NameRequired/OptionalData TypeDescription
ResourceUniqueIDRequiredLongIdentification number of the resource for the new assignment, or -65535 for unassigned.

Return Value

Boolean

Remarks

The ReassignSelectedAssns method works only with the Team Planner view.

If you use the Team Planner to drag an assignment from one resource to another while you are recording a macro, the macro does not show the results of the drag action. To record a macro that shows the ReassignSelectedAssns method, you must right-click an assignment in the Team Planner, and then click Reassign To in the option menu.

Example

The following line of code reassigns the assignments selected in the Team Planner to the resource with ID = 2.

ReassignSelectedAssns ResourceID:=2

The following line of code changes the assignments to unassigned.

ReassignSelectedAssns ResourceID:=-65535
© 2018 Microsoft