Resources Collection Object
Project Developer Reference |
Contains a collection of Resource objects.
Example
Using the Resources Collection
Use Resources(Index), where Index is the resource index number or resource name, to return a single Resource object. The following example lists the names of all resources in the active project.
Visual Basic for Applications |
---|
|
Using the Resources Collection
Use the Resources property to return a Resources collection. The following example generates the same list as the previous example, but does so by setting an object reference to ActiveProject.Resources
, and then using R
where ActiveProject.Resources
is used.
Visual Basic for Applications |
---|
|
Use the Add method to add a Resource object to the Resources collection. The following example adds a new resource named Matilda to the active project.
Visual Basic for Applications |
---|
|
See Also