Thread: Hiding VBA code
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
steve steve is offline
external usenet poster
 
Posts: 576
Default Hiding VBA code

Ur welcome!

--
sb
"David Wooddall-Gainey" wrote in message
...

Thx

-----Original Message-----
David,

Go into the VBE. Select the Tools menu and

VBAProjectProperties.
Protect with a password (don't forget this word). Save.

Once the workbook is closed and reopened, you can only

get to the code if
you have the password.

Do remember that power users may be able to "crack" your

password. Excel is
not known to be that secure. But VBA passwords are a

little harder to
crack.

--
sb
"David Wooddall-Gainey" wrote in message
...
I have a subroutine to automate update functions.

Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and

then
turn protection back on.

Can I hide the vba code from my users, so they cannot

see
the protection password?

TIA



.