Deny access to VBA code for unauthorized users

F

flummi

Hi all,

Does anyone know how to deny access to the VBA code of a workbook for
all users except the developer?

The background is this.

We have a workbook that collects data from users and has a lot of VBA
code. All controls and sheets are driven by that code and all sheets
are protected.

But for certain actions the code needs to unprotect the sheet, update
cells and protect it again.

This obviously reveals the passwords required for unprotecting the
sheets.

Your help is very much appreciated.

Thanks.

Hans
 
P

prabhuraaman

Go to the Visual Basic Editor
Go to TOOLS menu
Clik VBA PROJECT PROPERTIES
Cilk the PROTECTION tab
Check the LOCK PROJECT FOR VIEWING box
Enter your password

If you like this solution, you may also like
http://groups.google.co.in/group/Answers-for-everything/browse_thread/thread/946502c223298627
http://groups.google.co.in/group/Answers-for-everything/browse_thread/thread/1b7a6ecc82c9cb75

For more,post your questions on
http://groups.google.co.in/group/answers-for-everything
or e-mail to
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top