Excel VBA - How to disable access to the VBE

I'd like to prevent people from entering the VBE.  How can I do this?
brothertruffle880Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
You can protect the VBA Project. Open the VB Editor and select the WorkBook in the left hand column. Then Tools -> VBA Project prperties - > Security. checl Lock Project for viewing, add a password. Close the Workbook for this to take effect
0
Martin LissOlder than dirtCommented:
Password protecting as Roy suggested is a way to protect it from the average user, but someone who is determined to look at the code can use any of the readily available password finders from the web. There are more secure methods for protection offered on the web but they're not free. I haven't used them
0
Roy CoxGroup Finance ManagerCommented:
I have used one that makes the Project unviewable. It costs a few dollars, but I have only found one way to get round this.  However, the normal method will deter the majority of users.
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

ProfessorJimJamMicrosoft Excel ExpertCommented:
I am using Petros secure + +  Not breakable at all. The best secure way to protect your vba

It is still in beta version, but works fine.
0
Roy CoxGroup Finance ManagerCommented:
I have read about that and used some of their other products. I haven't seen the beta version but it reads very much like what I use. I'm not sure if it shares the same vulnerability as the one that I use because I have not seen a workbook protected with it.
0
ProfessorJimJamMicrosoft Excel ExpertCommented:
any other VBA protectors can be panetrated by https://www.thegrideon.com/index.php?id=30 

the Secure + +  crashes if attempted to break.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.