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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.