VbaProject class
VbaProject class
Represents the VBA project.
The VbaProject type exposes the following members:
Properties
Property | Description |
---|---|
is_valid_signed | Indicates whether the signature of VBA project is valid or not. |
cert_raw_data | Gets certificate raw data if this VBA project is signed. |
encoding | Gets and sets the encoding of VBA project. |
name | Gets and sets the name of the VBA project. |
is_signed | Indicates whether VBAcode is signed or not. |
is_protected | Indicates whether this VBA project is protected. |
islocked_for_viewing | Indicates whether this VBA project is locked for viewing. |
modules | Gets all VbaModule objects. |
references | Gets all references of VBA project. |
Methods
Method | Description |
---|---|
sign | Sign this VBA project by a DigitalSignature |
protect | Protects or unprotects this VBA project. |
copy | Copy VBA project from other file. |
validate_password | Validates protection password. |
Example
from aspose.cells import Workbook
# Instantiating a Workbook object
workbook = Workbook()
# Init VBA project.
vbaProject = workbook.vba_project
# Saving the Excel file
workbook.save("book1.xlsm")
See Also
- module
aspose.cells.vba
- class
VbaModule