Solved

Can I prevent people from accessing VBE in Excel?

Posted on 2011-09-30
3
247 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now