import modules

M

MarcoPolo

i use this for export on the server

For Each Module In Application.VBE.ActiveVBProject.VBComponents
if Module.Type = 1
Module.Export pthVisual & Module.Name & ".bas"
Module.Export "E:\vb\functions\" & Module.Name & ".bas"
endif
Next

how can i add automatic this modules into the different clients?
I didnt find a proper page helping me about "import"
 
W

Word Heretic

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

Easiest way is to put this in a global template, reference that
template from your other projects and call the function as required.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


MarcoPolo reckoned:
 
M

MarcoPolo

Word Heretic said:
G'day "MarcoPolo" <[email protected]>,

Easiest way is to put this in a global template, reference that
template from your other projects and call the function as required.

i can't put a template cause on the clients i don't have the rights on
system C:\
so i use a macro to import all the modules (found the sintax)

The only problem now is that i should i delete the modules before import
when i update them. how can I use the module.delete?
 
W

Word Heretic

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

ActiveDocument.VBProject.VBComponents.Remove Mycomponent

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


MarcoPolo reckoned:
 

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