Link to home
Start Free TrialLog in
Avatar of Sandesh555
Sandesh555Flag for India

asked on

How to protect VBA code from un authorised access

Hi Team,

I am facing a huge problem in terms of the vba.code protection from  unauthorised access.  Even if the same is passward protected it seems that you easily break vba passward lock.

Can some please suggest a better solution to protect my codes from being accessed without my permission.  I design and send developed tools to different teams to make their work simple.

Sandesh1983 Jadhav
Avatar of Ken Butters
Ken Butters
Flag of United States of America image

I don't know of any other method to protect a VBA project... other than to lock it with a password.

A better question might be... Why are the persons you are distributing the tools to trying to crack the password protection in the first place?

If they do crack it and manage to update something... you still have the original code correct?

My point being here is that you could establish a guideline that let's people know that you will only be supporting the original code... and that if they choose to change it, that they are on their own from a support perspective.
ASKER CERTIFIED SOLUTION
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could use VB6 (or VB.Net) to create an executable that creates and/or updates an Excel spreadsheet. Code in such an executable can not be decompiled.
@MartinLiss

I'm not sure what you are basing your assumption on, I have successfully decompiled .Net code.
Okay I guess I overstated and should have said that VB programs compiled to native code are not easily decompiled to human-readble form. Yes the hacker might be able to see what's going on but at least you're putting another obstacle in his path.

Note that there are 3rd-party programs that can be used to protect exe's from hacking.
Note that there are 3rd-party programs that can be used to protect exe's from hacking.

And there are those that enable decompiling, such as those that I've used before.