aspose.cells
Class VbaProject

Represents the VBA project.

Property Getters/Setters Summary
functiongetIslockedForViewing()
           Inidicates whether this VBA project is locked for viewing.
functionisProtected()
           Inidicates 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
functionprotect(islockedForViewing, password)
           Protects or unprotects this VBA project.
 

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()
Inidicates whether this VBA project is protected.

getIslockedForViewing : boolean 

function getIslockedForViewing()
Inidicates 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.

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