Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chekcing your own code???

Status
Not open for further replies.

Kryzsoccer

Programmer
Oct 15, 2002
85
US
Is there a way to have VBA check it's own code(i.e. maybe compare it to a textfile).
I want it to make sure that no one can alter my code in any way.
Thanks in advance!
 
And using the VBA protection features isn't sufficient? They are your first line of defense.
Rob
[flowerface]
 
What are the VBA protection features and how do you use them?
(By the way, I am using VBA with Microsoft Word)
 
STUPID, STUPID! Shame on me for posting without first searching the forum! This protection should be perfect, THANKS, Rob, for pointing me in the right direction!
 
Kryzsoccer,

What you asked could be done, but Rob's suggestion is the way to go. Anyone knowing enough to change your code would be able to circumvent the VBA self-inspection. Too much work for too little payoff.

Regards,
Mike
 
Have a look at digital certificates. It will prove that the vba code was written by you, AND hasn't been altered by anyone else.

Of course, if you don't want people to look at your code, then just protect it. If you don't think sticking a password is enough (I'm sure there are ways around), then consider creating a .dll (in visual basic) to hide as much code away as possible.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top