Digitally Sign a VBA Code Project with Certificate

Digitally Sign a VBA Code Project with Certificate in C#

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