aspose.cells
Class VbaProject

Represents the VBA project.

Property Getters/Setters Summary
functiongetIslockedForViewing()
           Indicates whether this VBA project is locked for viewing.
functionisProtected()
           Indicates whether this VBA project is protected.
functionisSigned()
           Indicates whether VBAcode is signed or not.
functiongetModules()
           Gets all VbaModule objects.
functiongetName()
functionsetName(value)
           Gets and sets the name of the VBA project.
functiongetReferences()
           Gets all references of VBA project.
 
Method Summary
functioncopy(source)
           Copy VBA project from other file.
functionprotect(islockedForViewing, password)
           Protects or unprotects this VBA project.
functionvalidatePassword(password)
           Validates protection password.
 

Property Getters/Setters Detail

getName/setName : String 

function getName() / function setName(value)
Gets and sets the name of the VBA project.

isSigned : boolean 

function isSigned()
Indicates whether VBAcode is signed or not.

isProtected : boolean 

function isProtected()
Indicates whether this VBA project is protected.

getIslockedForViewing : boolean 

function getIslockedForViewing()
Indicates whether this VBA project is locked for viewing.

getModules : VbaModuleCollection 

function getModules()
Gets all VbaModule objects.

getReferences : VbaProjectReferenceCollection 

function getReferences()
Gets all references of VBA project.

Method Detail

protect

function protect(islockedForViewing, password)
Protects or unprotects this VBA project. If islockedForViewing is true, the password could not be null.
Parameters:
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.

copy

function copy(source)
Copy VBA project from other file.
Parameters:
source: VbaProject -

validatePassword

function validatePassword(password)
Validates protection password.
Parameters:
password: String - the password
Returns:
Whether password is the protection password of this VBA project

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.