VbaProjectReferenceCollection
Contents
[
Hide
]VbaProjectReferenceCollection class
Represents all references of VBA project.
class VbaProjectReferenceCollection;
Methods
Method | Description |
---|---|
get(number) | Get the reference in the list by the index. |
addRegisteredReference(string, string) | Add a reference to an Automation type library. |
addControlRefrernce(string, string, string, string) | Add a reference to a twiddled type library and its extended type library. |
addProjectRefrernce(string, string, string) | Adds a reference to an external VBA project. |
copy(VbaProjectReferenceCollection) | Copies references from other VBA project. |
getCount() | Gets the number of elements contained in. |
isNull() | Checks whether the implementation object is null. |
get(number)
Get the reference in the list by the index.
get(i: number) : VbaProjectReference;
Parameters:
Parameter | Type | Description |
---|---|---|
i | number | The index. |
Returns
addRegisteredReference(string, string)
Add a reference to an Automation type library.
addRegisteredReference(name: string, libid: string) : number;
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The name of reference. |
libid | string | The identifier of an Automation type library. |
addControlRefrernce(string, string, string, string)
Add a reference to a twiddled type library and its extended type library.
addControlRefrernce(name: string, libid: string, twiddledlibid: string, extendedLibid: string) : number;
Parameters:
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(string, string, string)
Adds a reference to an external VBA project.
addProjectRefrernce(name: string, absoluteLibid: string, relativeLibid: string) : number;
Parameters:
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(VbaProjectReferenceCollection)
Copies references from other VBA project.
copy(source: VbaProjectReferenceCollection) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
source | VbaProjectReferenceCollection | The source references. |
getCount()
Gets the number of elements contained in.
getCount() : number;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;