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 make use of Workbook.VbaProject.Sign() method. Here are the input and output files of the sample code. You can use any excel file and any certificate to test this code.