Password protect a file.

Dedes

New Member
Joined
Jan 15, 2010
Messages
24
Hi,

I am doing a project for my work and I don't want anybody to see how I am creating it.

My file has one sheet that is protected and also the VBA code is protected.
The sheet that is protected has a VBA module with the code below in order to let a macro change some values on that sheet.
Sheet5.UnProtect Password:="xxxxxx"
Sheet5.Protect Password:="xxxxxxxxxx"

However today I was surprised when a friend told me he could crack my file in 5 minutes.
I am very desapointed.

Is there any further way of proteting the file and making it impossible to crack?

many thanks
Dedes
 
Last edited by a moderator:
Dedes,

Unfortunately, Excel isn't a secure application, nor has it ever been marketed as one. Think of Excel protection like locks on doors: all they do is keep honest people honest. It's generally good enough for about 99% of the population, but if someone really wants to get past it, they can do so relatively easily.

Fortunately, both VBA and workbook protection are harder to break than worksheet protection, but they are still vulnerable. If you really need something secure and distributable, I'd do a Bingle search for "Excel compiler". If I recall there's still at least one good offering out there.

HTH,
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top