M
Marc R. Bertrand
Hello,
I have been posting the following below in a few windows related
newsgroups, hoping to get a professional answer once and for all.
==========================================================================
Hi,
I often create Excel files with lots of VBA code in them. I sometimes
protect the code, by giving a password to the project in the project
window (by right-clicking the project, selecting VBAProject
Properties..., protection tab, etc.)
As you know, it's possible to find web sites on the Internet that
offer password cracking software.
So, what's the point of having a password on a relatively important
file if that file's code project can be cracked open?
Since I haven't heard yet of an uncrackable password in a VBA project
(be it Excel or Word or whatever), I don't think such a thing exists.
I demand proof if it does.
Therefore, I think the best way to avoid having code messed with or
stolen is to simply delete it when an unauthorized someone wants to
get a hold of it. For the deletion to occur, a macro in the project
needs to be called or triggered and run at a precise time. That time
would be when the project expands (as when clicking on the '+' sign)
without having been opened by normal means. Assuming an unauthorized
someone cracks open the project with the help of some software, a very
special *windows* sort of event would call (API or something) the
macro which would then delete all the code in all the project modules.
Can a windows programmer help me with this or does the situation I
described above belong to some other newsgroup realm?
Thanks a lot for your attention.
Marc R. Bertrand
www.goalseek.net
(e-mail address removed)
I have been posting the following below in a few windows related
newsgroups, hoping to get a professional answer once and for all.
==========================================================================
Hi,
I often create Excel files with lots of VBA code in them. I sometimes
protect the code, by giving a password to the project in the project
window (by right-clicking the project, selecting VBAProject
Properties..., protection tab, etc.)
As you know, it's possible to find web sites on the Internet that
offer password cracking software.
So, what's the point of having a password on a relatively important
file if that file's code project can be cracked open?
Since I haven't heard yet of an uncrackable password in a VBA project
(be it Excel or Word or whatever), I don't think such a thing exists.
I demand proof if it does.
Therefore, I think the best way to avoid having code messed with or
stolen is to simply delete it when an unauthorized someone wants to
get a hold of it. For the deletion to occur, a macro in the project
needs to be called or triggered and run at a precise time. That time
would be when the project expands (as when clicking on the '+' sign)
without having been opened by normal means. Assuming an unauthorized
someone cracks open the project with the help of some software, a very
special *windows* sort of event would call (API or something) the
macro which would then delete all the code in all the project modules.
Can a windows programmer help me with this or does the situation I
described above belong to some other newsgroup realm?
Thanks a lot for your attention.
Marc R. Bertrand
www.goalseek.net
(e-mail address removed)