Import module

M

Mark

I am using Word 97 and I want to import a module into an
existing template.

Is there some some that will do this automatically? if so
can someone provide me with some code.

As an added bonus could this code check to see if the
module to be imported already exists and if so ask
whether it is to be written over.

Regards

Mark
 
S

Steve Hudson

G'day "Mark" <[email protected]>,

ActiveDocument.VBProject.VBComponents.Import MyFilename.frm


Mark said:
I am using Word 97 and I want to import a module into an
existing template.

Is there some some that will do this automatically? if so
can someone provide me with some code.

As an added bonus could this code check to see if the
module to be imported already exists and if so ask
whether it is to be written over.

Regards

Mark

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

If answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 
Top