Skip to content

Latest commit

 

History

History
65 lines (36 loc) · 1.6 KB

Project.Application.ReassignSelectedAssns.md

File metadata and controls

65 lines (36 loc) · 1.6 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ReassignSelectedAssns method (Project)
vbapj.chm1512
vbapj.chm1512
project-server
Project.Application.ReassignSelectedAssns
ab3df7f1-bc36-2b8a-23d7-30ee0387a785
06/08/2017
medium

Application.ReassignSelectedAssns method (Project)

Reassigns the selected assignments in the Team Planner view.

Syntax

expression. ReassignSelectedAssns( _ResourceID_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
ResourceUniqueID Required Long Identification 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

[!includeSupport and feedback]