title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.ResourceSharing method (Project) |
vbapj.chm105 |
|
project-server |
|
c11f9715-83c2-7872-1d53-fb538ed21c74 |
06/08/2017 |
medium |
Controls resource sharing, for local resources and projects.
expression. ResourceSharing
( _Share_
, _Name_
, _Pool_
)
expression A variable that represents an Application object.
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 . |
Boolean
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.
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]