How to make a vba project unviewable

P

Peter Gast

Hello,

Does anyone know how I can a VBA-project unviewable? That means that the
password dialog doesn't prompt, if I want to go to the vba code. This seems
to be the best protection because a password hacker tool can't hack this
protection. I have some addins on my machine which this protection have.
I have no idea how to do this protection. Saving a Word2000 in Office97 and
after this only working with higher versions wasn't the solution. Creating a
digital certificate, store the project and delete the certificate doesn't
work too.

Thanks Peter
 
J

Jonathan West

Get a copy of VB6, create an ActiveX DLL project. Move most of your code
into the DLL project, and call the DLL from stub code in your template.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
P

Peter Gast

That could be a solution. I thougt about this time ago, but for a
distributalbe app the *.dot is easier to handle and smaller for download
than a setup which needs an application.

I think there must be a solution because they are many dot with this kind of
security.

Peter
 
T

Tony Jollans

The "Project unviewable" message is not protection. It is what you get when
a template is loaded as an AddIn - in order to view the project you must
open the template as a document and, when you have done that, you will come
across any security which has been applied.
 
K

Karl E. Peterson

Peter said:
That could be a solution. I thougt about this time ago, but for a
distributalbe app the *.dot is easier to handle and smaller for
download than a setup which needs an application.

I think there must be a solution because they are many dot with this
kind of security.

Heh, and none of them are even remotely secure. (Wanna see the code inside
PDFMaker.dot? <G>)
 
P

Peter Gast

It could be that this is not a protection as a security feature, but the
bevaviour is like a protection and better than the known password protection
which is hackable by special tools.
I tried out to open several templates (which has an unviewable project) as a
document, and the password dialog doesn't prompt and the code wasn't
viewable. LIKE A GOOD SECURITY FEATURE.

Let me try out my own project, who can tell me, how can I make a project
unviewable? I'm absolutly sure that this is the better way to hide the code
than the password protection.

Peter
 
T

Tony Jollans

I think you misunderstand, Peter. It is not security and it is not like
security.

I can telephone my neighbour. I can interact with her in many ways but I
cannot see anything in her house - that is not security, it's physics. If I
want to see anything, I must go round to visit and when I do, I may, or may
not be able to get in - that is security.

If you want to make your own project unviewable, save it in Word's startup
folder and restart Word. That will not make it in any way at all secure. The
project is unviewable because Word isn't holding it in memory in a way in
which it can be viewed.
 

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