If you want to prevent users of your solution from accidentally changing your macro project and invalidating your signature, lock the macro project before you sign it. However, if you have the valid digital certificate that was previously used to sign the project on your computer, the macro project is automatically re-signed when you save it. It is recommended that you sign macros only after your solution has been tested and ready for distribution: when code in a signed macro project is changed in any way, its digital signature is removed.