Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

How to make a vba project unviewable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Gast - 09 Apr 2006 10:51 GMT
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
Jonathan West - 09 Apr 2006 11:06 GMT
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.

Signature

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

> Hello,
>
[quoted text clipped - 9 lines]
>
> Thanks Peter
Peter Gast - 09 Apr 2006 15:37 GMT
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

> 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.
[quoted text clipped - 12 lines]
>>
>> Thanks Peter
Karl E. Peterson - 10 Apr 2006 20:52 GMT
> 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>)
Signature

Working without a .NET?
http://classicvb.org/

Tony Jollans - 09 Apr 2006 22:28 GMT
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.

--
Enjoy,
Tony

> Hello,
>
[quoted text clipped - 8 lines]
>
> Thanks Peter
Peter Gast - 13 Apr 2006 02:00 GMT
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

> The "Project unviewable" message is not protection. It is what you get
> when
[quoted text clipped - 23 lines]
>>
>> Thanks Peter
Tony Jollans - 13 Apr 2006 12:02 GMT
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.

--
Enjoy,
Tony

> 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
[quoted text clipped - 36 lines]
> >>
> >> Thanks Peter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.