Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

import modules

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarcoPolo - 13 Mar 2006 19:29 GMT
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"
Word Heretic - 14 Mar 2006 04:15 GMT
G'day "MarcoPolo" <Marco@polo.com>,

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:

>i use this for export on the server
>
[quoted text clipped - 7 lines]
>how can i add automatic this modules into the different clients?
>I didnt find a proper page helping me about "import"
MarcoPolo - 14 Mar 2006 19:15 GMT
> G'day "MarcoPolo" <Marco@polo.com>,
>
> 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?
Word Heretic - 21 Mar 2006 15:23 GMT
G'day "MarcoPolo" <Marco@polo.com>,

ActiveDocument.VBProject.VBComponents.Remove Mycomponent

Steve Hudson - Word Heretic

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

MarcoPolo reckoned:

>> G'day "MarcoPolo" <Marco@polo.com>,
>>
[quoted text clipped - 7 lines]
>   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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.