Check if VBA project in a Workbook is Signed
Contents
[
Hide
]
You can check if your VBA project is signed or not using Microsoft Excel via Tools > Digital Signatures… menu command. Similarly, you can check it programmatically using Aspose.Cells for Python via .NET Workbook.vba_project.is_signed property.
Check if VBA project in a Workbook is Signed in Python
The following code loads the workbook and checks if its VBA project is signed using Workbook.vba_project.is_signed property. The property will return true if the project is signed otherwise it will return false.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
workbook = Workbook(dataDir + "Sample1.xlsx") | |
print("VBA Project is Signed: " + str(workbook.vba_project.is_signed)) |