class
VbaProject
Source: aspose.
Represents the VBA project.
Methods
getModules()
Gets all VbaModule objects.
getName()
Gets and sets the name of the VBA project.
getReferences()
Gets all references of VBA project.
isProtected()
Indicates whether this VBA project is protected.
isSigned()
Indicates whether VBAcode is signed or not.
protect(islockedForViewing, password)
Protects or unprotects this VBA project. If islockedForViewing is true, the password could not be null.
Parameters
| Name | Type | Optional | 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. |
setName()
Gets and sets the name of the VBA project.
validatePassword(password) → boolean
Validates protection password.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
password |
String |
|
the password |
- Returns
-
booleanWhether password is the protection password of this VBA project