We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Verifying digital signatures in macros


Is there currently a way to verify if an excel document’s macros are digitally signed?




Please see the document:

I am afraid, we only support to assign or validate digital signatures for Excel workbook or files. We do not support to verify if an Excel file’s macro/vba codes is digitally signed. In fact Aspose.Cells does not support to access, create, manipulate or even execute macros in the workbook, it only supports to retain the macros/vba codes (if your template file has it already) and save as the file with it.

Thank you.


We are pleased to announce that latest Aspose.Cells for .NET version (you may get the latest version here) supports to digitally sign vba code project/macros with certificate, it also supports to check if digital signature for vba code is valid. Please use the following APIs:

VbaProject.Sign(DigitalSignature digitalSignature)

See the documents with example code for your complete reference.
Digitally Sign a VBA Code Project with Certificate
Check if Digital Signature of VBA Code is Valid

Moreover, Aspose.Cells now supports to access, create and manipulate macros/vba code in the workbook although it does not support executing macros yet.

We also recommend you download our featured demos to test variety of different features.