Corey,
In VBA, go to the Tools menu, choose VBA Project Properties, then
the Protection tab. Check the "Lock project for viewing" check
box and assign a password. Note, however, that the protection is
very weak and there are any number of tools available for easily
breaking the password.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"Corey" wrote in message
...
Is there a simple code I can add to prevent someone accessing
code in a workbook, by placing a password on it?
Corey....