Solved

Can I prevent people from accessing VBE in Excel?

Posted on 2011-09-30
3
271 Views
Last Modified: 2012-08-14
Can I make the VBE access password protected in Excel? Whether is through macro or Alt+F11?  
0
Comment
Question by:fitaliano
3 Comments
 
LVL 4

Accepted Solution

by:
Subnet_This earned 500 total points
ID: 36892506
To protect your code, do the following:

Open the Excel Workbook and go to Tools>Macro>Visual Basic Editor (Alt+F11). Now, from within the VBE go to Tools>VBAProject Properties and then click the Protection page tab and then check "Lock project from viewing" and then enter your password and again to confirm it. After doing this you must save, close & reopen the Workbook for the protection to take effect.
0
 
LVL 3

Expert Comment

by:kaosyeti
ID: 36892867
subnet this is correct.  also, while your vbe is protected this way, the properties box in the developer tab cannot be viewed, even while the worksheet is unprotected.  also, if there is an issue with your code that activates the debugger, it cannot be used until the password is entered in the vb editor.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 36894567
Do be aware, though, that this password is not secure.  There are numerous free/cheap utilities available via quick Google search that will shred the password in a few seconds.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question