java.lang.Object
com.aspose.cells.VbaProject
public class VbaProject
- extends java.lang.Object
Represents the VBA project.
Example:
//Instantiating a Workbook object
Workbook workbook = new Workbook();
// Init VBA project.
VbaProject vbaProject = workbook.getVbaProject();
//Saving the Excel file
workbook.save("C:\\book1.xlsm");
Method Summary |
void | copy(VbaProject source) | |
Copy VBA project from other file.
|
void | protect(boolean islockedForViewing, java.lang.String password) | |
Protects or unprotects this VBA project.
|
void | sign(DigitalSignature digitalSignature) | |
Sign this VBA project by a DigitalSignature
|
boolean | validatePassword(java.lang.String password) | |
Validates protection password.
|
Property Getters/Setters Detail |
isValidSigned | |
public boolean isValidSigned()
|
-
Indicates whether the signature of VBA project is valid or not.
getCertRawData | |
public byte[] getCertRawData()
|
-
Gets certificate raw data if this VBA project is signed.
getName/setName | |
public java.lang.String getName() / public void setName(java.lang.String value)
|
-
Gets and sets the name of the VBA project.
isSigned | |
public boolean isSigned()
|
-
Indicates whether VBAcode is signed or not.
isProtected | |
public boolean isProtected()
|
-
Indicates whether this VBA project is protected.
getIslockedForViewing | |
public boolean getIslockedForViewing()
|
-
Indicates whether this VBA project is locked for viewing.
-
Gets all VbaModule objects.
-
Gets all references of VBA project.
sign | |
public void sign(DigitalSignature digitalSignature)
throws java.lang.Exception |
-
Sign this VBA project by a DigitalSignature
- Parameters:
digitalSignature
- DigitalSignature
protect | |
public void protect(boolean islockedForViewing, java.lang.String password) |
-
Protects or unprotects this VBA project.
If islockedForViewing is true, the password could not be null.
- Parameters:
islockedForViewing
- indicates whether locks project for viewing.password
-
If the value is null, unprotects this VBA project, otherwise projects the this VBA project.
-
Copy VBA project from other file.
- Parameters:
source
-
validatePassword | |
public boolean validatePassword(java.lang.String password) |
-
Validates protection password.
- Parameters:
password
- the password
- Returns:
- Whether password is the protection password of this VBA project
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.