Is there a way to hide vba code or block access to the code viewer?
Thanks
Gary
Is there a way to hide vba code or block access to the code viewer?
Thanks
Gary
Open the VBE and go to Tools | VBAProject Properties...
Click the Protection tab.
Check the box for Lock project for viewing.
Add a password.
Thanks for the quick response DRJ. I did as you suggested but it doesn't seem to work. I can still get into and modify the vba code and it doesn't ask me to supply the password that I set.
Disreguard my last message. After I closed the file and reopened it then attempted to get into the vba code it asked for the password.
Thanks DRJ
Please mark it solved.
You should know that this is not a fool-proof way to protect your code but it will keep out most average users....
thread marked solved
Steve
"Nearly all men can stand adversity, but if you want to test a man's character, give him power."
-Abraham Lincoln
Yea, you have to save and close for it to take effect.
Glad to help
Take Care