VbaProjectReferenceCollection
Contents
[
Hide
]VbaProjectReferenceCollection class
Represents all references of VBA project.
Properties
| Name | Type | Description |
|---|---|---|
| Count | int | |
| Item (int) | VbaProjectReference | Get the reference in the list by the index. |
Methods
| Name | Description |
|---|---|
| addRegisteredReference | Add a reference to an Automation type library. |
| addControlRefrernce | Add a reference to a twiddled type library and its extended type library. |
| addProjectRefrernce | Adds a reference to an external VBA project. |
| copy | Copies references from other VBA project. |
| clear | |
| removeAt | |
| iterator | |
| get | Reserved for internal use. |
| contains | Reserved for internal use. |
| add | Reserved for internal use. |
| indexOf | Reserved for internal use. |
VbaProjectReferenceCollection.Count property
Type: int
VbaProjectReferenceCollection.Item (int) property
Get the reference in the list by the index.
Type: VbaProjectReference
addRegisteredReference(name, libid)
Add a reference to an Automation type library.
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of reference. |
| libid | String | The identifier of an Automation type library. |
addControlRefrernce(name, libid, twiddledlibid, extendedLibid)
Add a reference to a twiddled type library and its extended type library.
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of reference. |
| libid | String | The identifier of an Automation type library. |
| twiddledlibid | String | The identifier of a twiddled type library |
| extendedLibid | String | The identifier of an extended type library |
addProjectRefrernce(name, absoluteLibid, relativeLibid)
Adds a reference to an external VBA project.
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of reference. |
| absoluteLibid | String | The referenced VBA project’s identifier with an absolute path. |
| relativeLibid | String | The referenced VBA project’s identifier with an relative path. |
copy(source)
Copies references from other VBA project.
| Parameter | Type | Description |
|---|---|---|
| source | VbaProjectReferenceCollection | The source references. |
clear()
removeAt(index)
iterator()
get(index)
Reserved for internal use.
contains(value)
Reserved for internal use.
add(value)
Reserved for internal use.
indexOf(value)
Reserved for internal use.