Check if VBA project in a Workbook is Signed

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.

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))