CHALLENGE: Make Add-In "Project is Unviewable"

malcom

Active Member
Joined
May 2, 2005
Messages
483
ive been searching all over mrexcel.. none i think knows the easiest way to do it.. i wonder..
Nimrod was the closest.. but he suggested using VB.. making a COM Add-In..
i know a way to do it which is very simple and wont require u VB. i always apply it on my code to prevent others from the possibility of viewing it.. i believe evryone who is into writing codes should know this..

anyone else who knows how to do it? anyone intersted?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Nice Challenge, try this:

------------------------------------------------

1) Save xls file as an add-in (No password) (Keep the xls file, you will need it)

2) Open the new xla file and press Alt + F11

3) Give the add-in's vba project a password

4) Double-click the add-in's "ThisWorkbook" module > Press F4

5) Change the IsAddin property to FALSE

6) Activate the Excel application window

7) TOOLS > SHARE WORKBOOK (Check the "Allow other users......" checkbox)

8) Press OK to save and share the file

9) Press OK to acknowledge the fact that macros cannot be viewed in a shared workbook

10) Save this workbook again as an add-in. Select File>Save As..., then delete the quotation marks and the .xla extension from the filename. Select add-in from the "Save as type:" dropdown list

11) Press Save, then press "Yes" to overwrite existing file add-in file

12) When the add-in is loaded, trying to access the vbe project will result in a "Project Unviewable" message
-----------------------------------------------



This is an bit of a bug in Excel maybe, but a useful one nonetheless. Note: You need to keep the original xls file because once you do this, it is done. The addin's project cannot be unprotected, etc... you can guess the limitations.

Works in 97, 2000, 2002. Cannot say for versions above (2003)

Hows this Malcom?
 
Upvote 0
Justin,

How the %$^& did you figure that out?

I'm, trying that in the morning!

Smitty

(Reminds me of the old STYX? song - "Too much time on my hands")

TIEASY!
 
Upvote 0
Well, as much as I personally abhor Shared-Workbooks, you cannot access the vbe projects in them. It was just a matter of getting a "shared workbook" converted to an add-in. Took a bit , trust me.
 
Upvote 0
Justinlabenne,
EXACTLY...
thats what i do on my code..:)
every after slight modification, i produce an Add-In which i share to others..
finally, i'd say, im not alone on this..:)
but i highly encourage all of us to use this one.. so far, i didnt find ways to view the code with this form of security.. the very reason y most/all MVP's dont know bout this is because this is a bug.. not an intended purpose..

Note: You need to keep the original xls file because once you do this, it is done.
no problem for this.. just always keep your original excel workbook file.. and never show it to others.. the one which cannot be undone is the add-in file..

if anyone knows of a way to view the code of the Add-In, please post here...
 
Upvote 0
BTW, i believe this works for all versions.. im using XP and it works fine for me...

Justinlabenne, where did u know about this? did u figure it out urself?

i heard from an expert that this form of security will assure secured from 98% of excel users/programmers... which means that there is still that 2%.. im not quite sure how to do that.. if u know, please share..
 
Upvote 0
I build a lot of projects at work for use by others, and for some reason I had a certain person who kept saving all of the workbooks they used as "Shared Workbooks" Come time to update, and I had to remove sharing, etc.. I never use that feature, but one property that was nice was that the vbe project became unviewable: I just had to figure out how to do it with an add-in.

A couple long nights later, I came across a method that worked.

You would most likely need decompiler to convert it back, and the only one I know of is here:
http://www.straxx.com/excel/decompiler/xla_decompile.html

Take care.......
 
Upvote 0

Forum statistics

Threads
1,216,267
Messages
6,129,792
Members
449,535
Latest member
Piaskun

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