打开VBAProject,点工具》VBAProject属性,安全,输入密码。
VBAProject——右键——VBAProject属性——保护————查看时锁定工程(选上 )。。。。。。。。。。。
在VBA界面,工具Vbproject属性,保护。就可以设置密码了亲。