Identifying Corporate Computer (VBA/Windows 2000/Word 2000)

Hello All,

How can I identify if my global template is installed on one of our corporate computers? I know there is a dll, api, or other reference that I can access under Tools, References but I don't know which one to pick. I basically want prevent people from stealing my template and using it at other companies. Is this possible?

Re: Identifying Corporate Computer (VBA/Windows 20

Okay I'll try. I'm not a network administrator but here goes:

My global template exists in Word's Startup folder. I was wondering when Word starts and my AutoExec procedure runs if there was a way I could validate or identify the network or if the computer is owned by our corporation.

Re: Identifying Corporate Computer (VBA/Windows 20

A simple and by no means hacker-proof solution that I use for the same purpose:
1. all PC's in our company have a little text file containing, among other things, the IT-department's hardware identification number of that PC, the version of the OS, etc. This hidden file exists in the root of the C-drive of all our company PC's and notebooks.
2. in code, the existence of that file, which has always the same name, is checked. If not present, then display a warning message and quit the code.
3. the VBA project code is protected with a password (which I don't give to anybody, not even system administrators! It's only stored in a sealed envelope in a safe, to be opened only in an emergency' by one of the managers.)

As I said, not very sophisticated, but effective. I've had a few requests from co-workers to reveal why it did not work on their home PC...

Re: Identifying Corporate Computer (VBA/Windows 20

I think there are many ways to do this, but there is one big catch: the "password" protection on code in templates is extremely weak. If, for example, you open the template in StarOffice 6.0, the VBA modules are imported to StarBasic modules, with every line prefixed with REM (if I recall correctly). You might need to compile your code as a COM Add-in after you've chosen your method of phoning home.