Hiding / locking access to VBA code

R

Roger on Excel

I have a spreadsheet which relies heavily on VBA code. I want to hide access
to my proprietary code from users.

Is there a way to password protect access to the VBA ?

Can anyone help?

Thanks,

Roger
 
B

Barb Reinhardt

You can protect it under Tools -> VBA Project properties. I don't believe
I've heard of a way to break this password, so if you forget it, you're toast!
 
G

Gord Dibben

Barb

From John McGimpsey's site...........................

In principle, VBA Project protection (applied by choosing Tools/Project
Properties in the VBE, checking the Lock Project for Viewing checkbox and
entering a password) is also more robust than worksheet/workbook protection.
Unfortunately, while the technique is not well known, VBA Project protection
can be bypassed easily with a hex editor. Commercial services also are able
to remove such protection in a heartbeat.

As with file protection, a hex editor can also lay bare your VBA macros.
Macro keywords are tokenized, so it's not directly human-readable, but it's
often easy to figure out program flow, look at constants, etc.

http://www.mcgimpsey.com/excel/fileandvbapwords.html


Gord Dibben MS Excel MVP
 

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