简体   繁体   English

保护Excel的VBA代码

[英]Protect VBA code for Excel

除了在“项目属性”>“保护”下添加密码(我认为这实际上很容易破解)之外,如何防止用户查看/复制我的代码?

May be this is the good possibility: http://msdn.microsoft.com/en-us/library/office/aa189867(v=office.10).aspx 可能是这样的可能性很大: http : //msdn.microsoft.com/zh-cn/library/office/aa189867(v=office.10).aspx

To provide the highest level of security for your VBA code, use Microsoft Visual Basic version 6.0 to create a Component Object Model (COM) add-in. 若要为您的VBA代码提供最高级别的安全性,请使用Microsoft Visual Basic 6.0版创建组件对象模型(COM)加载项。 Because the VBA code in a COM add-in is compiled as a dynamic-link library (DLL), it can't be modified without access to the source code used to originally create it. 因为COM加载项中的VBA代码被编译为动态链接库(DLL),所以如果不访问最初用于创建它的源代码,就无法对其进行修改。 Application-specific add-ins are not compiled; 特定于应用程序的加载项不会编译; you must use the same protections as templates and documents. 您必须使用与模板和文档相同的保护措施。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM