Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 1.8 KB

Project.Application.ResourceSharing.md

File metadata and controls

60 lines (35 loc) · 1.8 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ResourceSharing method (Project)
vbapj.chm105
vbapj.chm105
project-server
Project.Application.ResourceSharing
c11f9715-83c2-7872-1d53-fb538ed21c74
06/08/2017
medium

Application.ResourceSharing method (Project)

Controls resource sharing, for local resources and projects.

Syntax

expression. ResourceSharing( _Share_, _Name_, _Pool_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Share Optional Boolean True if local resources are shared. If Name is specified, Share is ignored.
Name Optional String The file name of the project that contains the local resource pool.
Pool Optional Boolean True if resources in the local pool take precedence over resources in the project .

Return value

Boolean

Remarks

Using the ResourceSharing method without specifying any arguments displays the ShareResources dialog box.

Note

Project Professional can share local resources only when not logged on Project Server. If Project Professional is using a Project Server profile, local resource sharing is unavailable.

Example

In the following example, the project that contains the resources to share is named SharedResourcePool.mpp. If the active project is named Sharer.mpp, the code enables Sharer.mpp to access resources from SharedResourcePool.mpp, where resources in the pool take precedence. Both projects must be open.

Application.ResourceSharing Share:=False, Name:="SharedResourcePool.mpp", Pool:=True

[!includeSupport and feedback]