new file format to be opened in word automatically ?

H

Herve cadieu

Hi
I have saved a .doc file after RSA encryption under "filename.glk"
I would like to open through word and the appropriate decryption VBA
routine(stored in a decryption.dot template) this .glk file with just a
double clik on it.

That is to say double clicking on the glk file will
start word
start the decryption routine
to then open the "filename .GLK" file in word.
automatically

Who can help me to this end ?
any help much appreciated ! Code snippet is a must !
Best regards from Paris to all.
Herve Cadieu
 
M

moi

Bonjour Herve,

It's not too tough I guess.

- In Windows Explorer, right click a .glk file and associate it with Word.
- In Word create a template with an AutoOpen macro for triggering a document
open event.
- If a document is opened, just check the extension - Right(
ThisDocument.Name, 4 ) - if it's .GLK, perform your encryption, if it's not,
up to you.

A sample in a document is here
http://www.geocities.com/smplprgrsrc/files/GLK-Opener.zip
 

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