Password Protected Excel Macro Becomes Fully Visible in Open Office

Rene Karolyi

New Member
Joined
Nov 6, 2008
Messages
3
Hi!

I have invested a lot of time and considerable effort to compose and program a quite complex technical application for my customers. I have taken all necessary steps, to avoid the user and of cause competitors from looking behind the scenes by using some of the techniques I learned through this very forum :) and by password protecting the VBA code.
Now, quite by chance I discovered that, if my spreadsheet application is opened with Open Office the VBA code becomes exposed without Open Office even asking for the password to be supplied :oops:. Just like that. From this I understand, that MS Excel does not encrypt the VBA code at all. :confused: Quite a serious security flaw as I see it!
Is there something that can be done to avoid this issue to happen and that keeps the code invisible if the password is not supplied?
It is really crucial! I will very much appreciate any help from your side!
Thank you in advance
Rene
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
One option is to divorce the VBA code from the core spreadsheet and save it in an excel addon (.xla) file. This reduces the likelihood that someone will "stumble" across your code.

The reality is that if someone wants to break into your code they can no matter how well chosen the password. All it takes is the will to break open the file, two seconds with google for a password ******* app and the time for the ******* app to run through it's paces. The only real protection you have is contractual.
 
Last edited:
Upvote 0
If you need real code security, you need to use a compiled language like VB6, C++ or a .net language. VBA project passwords can be broken easily with a simple hex editor if you really want to. For a commercial app, you probably need something more robust if you think competitors are likely to try and steal your Intellectual Property!
 
Upvote 0
Upvote 0
I'm having the same problem. However, I noticed that if you try to open up some of the standard add-ins like the Analysis Toolpak (funcres.xla) in OpenOffice you can't see the protected code.

Does anyone know how this is achieved?
 
Upvote 0
[Edit: Deleted. Missed the point - doh!]
 
Upvote 0
What is meant by Open Office here ??

Hi!

I have invested a lot of time and considerable effort to compose and program a quite complex technical application for my customers. I have taken all necessary steps, to avoid the user and of cause competitors from looking behind the scenes by using some of the techniques I learned through this very forum :) and by password protecting the VBA code.
Now, quite by chance I discovered that, if my spreadsheet application is opened with Open Office the VBA code becomes exposed without Open Office even asking for the password to be supplied :oops:. Just like that. From this I understand, that MS Excel does not encrypt the VBA code at all. :confused: Quite a serious security flaw as I see it!
Is there something that can be done to avoid this issue to happen and that keeps the code invisible if the password is not supplied?
It is really crucial! I will very much appreciate any help from your side!
Thank you in advance
Rene
 
Upvote 0
No, but it is considerably more secure than VBA.
 
Upvote 0

Forum statistics

Threads
1,216,360
Messages
6,130,176
Members
449,562
Latest member
mthrasher16

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