Methods

copy(source)

Copy VBA project from other file.

Parameter

Name Type Optional Description

source

VbaProject

 

getCertRawData()

Gets certificate raw data if this VBA project is signed.

getIslockedForViewing()

Indicates whether this VBA project is locked for viewing.

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.

isValidSigned()

Indicates whether the signature of VBA project is valid 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 projects the this VBA project.

setName()

Gets and sets the name of the VBA project.

sign(digitalSignature)

Sign this VBA project by a DigitalSignature

Parameter

Name Type Optional Description

digitalSignature

DigitalSignature

 

DigitalSignature

validatePassword(password) → boolean

Validates protection password.

Parameter

Name Type Optional Description

password

String

 

the password

Returns

boolean Whether password is the protection password of this VBA project