Digitally Sign a VBA Code Project with Certificate

Digitally Sign a VBA Code Project with Certificate in Java

The following sample code illustrates how to make use of the Workbook.VbaProject.Sign() method. Here are the input and output files for the sample code. You can use any Excel file and any certificate to test this code.