Where to Buy a Code-Signing Certificate for Excel VBA Macros
Question details
Find a digital certificate suitable for signing Excel VBA projects and establishing trust on other computers.

- Product
- Microsoft Excel VBA
- Device & OS
- not provided
- Scenario
- The user wants to sign Excel macros for use on multiple computers, including computers running Excel 2003.
- Observed behavior
- A SelfCert certificate is not automatically trusted on other computers, and an existing P12 certificate appears intended for browser or PDF signing.
Identify the Excel versions used to sign and run the macros, including Excel 2003 if applicable. Ask the certificate provider to confirm VBA code-signing support and compatibility with those versions before purchasing.
Purchase a Code-Signing Certificate That Supports Excel VBA
Use a certificate from a recognized certificate authority when distributing signed macros to other computers.
A certificate for PDF signing or browser authentication is not necessarily suitable for VBA code signing, even if it is supplied as a P12 file. Certificate trust also depends on the receiving computer's trust settings and macro security policy.
Review code-signing certificate offerings from providers such as GlobalSign and GoDaddy. Before buying, ask the provider whether its certificate supports signing Microsoft Office VBA projects.
Tell the provider which Excel versions you use, especially Excel 2003, and verify that the certificate, signing method, and required cryptographic algorithms are compatible with both the signing and receiving computers.
Follow the provider's instructions to install or access the certificate and its private key on the computer used to sign the VBA project. Protect the private key and follow the provider's rules for using it on multiple computers.
In Excel, press Alt+F11 to open the Visual Basic Editor. Select the VBA project, choose Tools > Digital Signature, select the certificate, and save the workbook.
Open the signed workbook on a target computer and check the publisher and security prompt. Confirm that the certificate chain is trusted and that the organization's macro policy permits the signed macros.

Use SelfCert for Local VBA Testing
Use a self-signed certificate for testing on your own computer rather than assuming it will be trusted by other users.
Work with Excel Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheet files. Its support for common Excel formats helps you move existing files into WPS, although it does not resolve Microsoft Excel certificate trust or macro security settings.

Frequently Asked Questions
What certificate do I need to sign an Excel VBA project?
Choose a code-signing certificate whose provider explicitly supports Microsoft Office VBA macros. Confirm compatibility with the Excel versions used by both the signer and recipients before purchasing.
Will a code-signing certificate work with Excel 2003?
Do not assume it will. Ask the certificate provider to verify its certificate, signing method, and cryptographic algorithm compatibility with Excel 2003 and the receiving computers before you buy.
Why is my SelfCert signature untrusted on another computer?
A SelfCert certificate is self-signed and is not automatically trusted elsewhere. The receiving computer must be deliberately configured to trust it, or you can use a suitable certificate from a recognized certificate authority.
Can I use a P12 certificate meant for PDF signing to sign VBA?
Not necessarily. P12 is a certificate file format, not proof that the certificate is authorized for code signing. Ask the issuer whether the certificate supports Microsoft Office VBA projects.
Where do I sign my macro in Excel?
Press Alt+F11 to open the Visual Basic Editor, select the VBA project, and choose Tools > Digital Signature. Select an installed certificate and save the workbook.




