VBA & Macro Problems

Fix Digital Signature Not Appearing in the VBA Editor

Chanuka GeekiyanageChanuka Geekiyanage Nov 2, 2026 868 views

Question details

The user is unable to find their digital certificate in the VBA Editor's Digital Signatures dialog when attempting to sign a VBA project.

How to Fix a Digital Signature Not Appearing in the VBA Editor
Product
Excel
Device & OS
not provided
Scenario
Attempting to add a digital signature to a VBA project to reduce the macro security permissions required when the file runs on another computer.
Observed behavior
The certificate used to sign the Office document is missing from the VBA Editor. Alternative tools like InkPicture fail to provide VBA signing functionality.
Before you start

Ensure you have administrative privileges on your computer to manage certificates, and verify that the certificate you intend to use is explicitly issued for 'Code Signing' rather than standard document encryption.

Solution 1Recommended

Install a Valid Code-Signing Certificate

Document signatures and VBA project signatures are managed separately. You must obtain and properly install a specific code-signing certificate in your Personal store for it to appear in the VBA Editor.

The digital signature shown under standard workbook protection is completely separate from a VBA project signature. VBA editors specifically filter the certificate list to only show valid 'Code Signing' certificates.

Additionally, features like InkPicture are designed for pen input and do not provide any functionality for digitally signing VBA projects.

1
Verify your certificate type

Check your certificate details to ensure its 'Intended Purposes' includes 'Code Signing'. If it only lists 'Document Protection' or 'Client Authentication', it will not work for VBA macros.

2
Open the Certificate Manager

Press Windows Key + R, type 'certmgr.msc', and press Enter to open the Windows Certificate Manager for the current user.

3
Import to the Personal Store

Navigate to the 'Personal' > 'Certificates' folder. Right-click, select 'All Tasks', and click 'Import'. Follow the wizard to import your valid code-signing certificate (.pfx or .p12 file).

4
Sign the VBA Project

Open Excel and press ALT + F11 to launch the VBA Editor. Go to 'Tools' > 'Digital Signature', click 'Choose', and select your newly installed code-signing certificate.

Install a Valid Code-Signing Certificate
Self-Signed Certificates: If you only need the macro to run on your own machine, you can create a self-signed certificate using the 'SelfCert.exe' tool found in the Microsoft Office installation folder.
Free Microsoft Office alternative

Seamlessly Manage Macro-Enabled Files with WPS Office

If you are struggling with complex VBA signature configurations in Microsoft Excel, consider switching to WPS Office. It offers an incredibly familiar interface, robust macro support, and is completely free to download.

  1. 1. Download and Install WPS Office: Visit the official WPS website, download the installer, and follow the simple setup instructions.
  2. 2. Open your Macro-Enabled File: Launch WPS Spreadsheets and open your existing .xlsm or .xls file. WPS will preserve your original formatting and macro codes.
  3. 3. Enable Macros Safely: When prompted by the security warning at the top of the screen, click 'Enable Macros' to securely run your VBA code.
Fully compatible with Microsoft Excel .xlsm, .xltm, and .xlsb macro formats.Reliable and secure VBA execution environment without complex certificate configuration hurdles.Lightweight application that uses significantly fewer system resources.
microsoft office alternative - wps office

Frequently Asked Questions

What is the difference between an Office document signature and a VBA signature?

A document signature ensures the workbook's content has not been tampered with and verifies the author's identity. A VBA signature (code signing) specifically verifies the publisher of the macro code, ensuring the executable scripts are safe to run and haven't been altered.

Can I use InkPicture to sign my VBA macros?

No. InkPicture is a feature used for capturing pen and ink input directly within Office documents. It has no capabilities for assigning digital certificates or securing VBA macro projects.

Why does my code-signing certificate still not show up after installation?

The certificate might have been installed in the 'Local Machine' store instead of the 'Current User' store, or the certificate chain might be untrusted. Ensure you import the certificate directly into the Personal Certificates folder under your specific user account.