VbaProject
Contents
[
Hide
]VbaProject class
Represents the VBA project.
Properties
| Name | Type | Description |
|---|---|---|
| Name | String | Gets and sets the name of the VBA project. |
| IsSigned | boolean | Indicates whether VBAcode is signed or not. |
| IsProtected | boolean | Indicates whether this VBA project is protected. |
| Modules | VbaModuleCollection | Gets all VbaModule objects. |
| References | VbaProjectReferenceCollection | Gets all references of VBA project. |
Methods
| Name | Description |
|---|---|
| protect | Protects or unprotects this VBA project. |
If islockedForViewing is true, the password could not be null. | | validatePassword | Validates protection password. |
VbaProject.Name property
Gets and sets the name of the VBA project.
Type: String
VbaProject.IsSigned property
Indicates whether VBAcode is signed or not.
Type: boolean
VbaProject.IsProtected property
Indicates whether this VBA project is protected.
Type: boolean
VbaProject.Modules property
Gets all VbaModule objects.
Type: VbaModuleCollection
VbaProject.References property
Gets all references of VBA project.
Type: VbaProjectReferenceCollection
protect(islockedForViewing, password)
Protects or unprotects this VBA project.
If islockedForViewing is true, the password could not be null.
| Parameter | Type | Description |
|---|---|---|
| islockedForViewing | boolean | indicates whether locks project for viewing. |
| password | String | If the value is null, unprotects this VBA project, otherwise protect this VBA project. |
validatePassword(password)
Validates protection password.
| Parameter | Type | Description |
|---|---|---|
| password | String | the password |
Returns: Whether password is the protection password of this VBA project