[英]How to write VBA Code to add Digital Signature to protect VBAProject?
I have searched the MSDN, it only gives an example how to add digital signature to protect the entire workbook: 我搜索了MSDN,它仅提供了一个示例,说明如何添加数字签名来保护整个工作簿:
ActiveWorkbook.Signatures.AddNonVisibleSignature "{00000000-0000-0000-0000-000000000000}"
but VBAProject does not contain any method to add a signature, the only way is: 但是VBAProject不包含任何添加签名的方法,唯一的方法是:
Steps for manual: 手动步骤:
Is there any way to do this pragmatically, or any other suggestions? 有什么方法可以务实地做到这一点,或有其他建议吗?
我认为您必须使用c#.net或vb.net来使用VSTO,因为vba受到限制,不会做您想要的一切,所以请看一下vsto ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.