如何隐藏VBA应用程序中的代码 [英] How to hide code in VBA applications

查看:941
本文介绍了如何隐藏VBA应用程序中的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以隐藏VBA代码,通常可从Excel的VBA编辑器( Alt - F11 )访问,从用户的窥视中?例如,我可以用数字签名签名吗?

Is it possible to hide VBA code, normally accessible from Excel's VBA Editor (Alt-F11), from a user's prying eyes? Can I, for instance, sign it with a digital signature?

标准VBA项目密码保护在这种情况下是不合适的,因为它可以相对容易地破解。 >

Standard VBA project password protection is not suitable in this case because it can be cracked relatively easily.

推荐答案

是的。点击菜单工具| VBAProject属性,在TAB保护下,选中锁定项目查看并输入密码。

Yes. Click on menu TOOL | VBAProject Properties and under the TAB "Protection", Check the box "Lock Project for Viewing" and enter the password.

保存并退出Excel文件。当您打开它时,代码将被隐藏。

Save and exit the Excel file. When you open it next the code will be hidden.

Sid

这篇关于如何隐藏VBA应用程序中的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆