Importing a menu item & macros from another file

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I have a word document 'A' and inside it, I have my own menu item 'XYZ'. This
menu item provides the merge fields, say 'merge field 1', 'merge field 2' ...
etc etc
The merge fields come from the macros i have written.

I have a lot of documents like 'A' and whenver I need to add a new merge
field, I have to go through following procedure, in document 'A':

1) Create a new macro
2) Add this to the menu at top.

I have to follow this procedure in ALL of the documents one by one which is
tedious.

Is there any way by which I can just add a macro and a menu item for it, in
ONE file and then import/attach it to the document 'A' and all other
documents?

Any help much appreciated.
Thanks

--
Message posted via http://www.officekb.com

.



Relevant Pages

  • RE: IF statements in Macros
    ... public function XYZ() ... so if you the replacement of abc with xyz is ... statements within the same macro or do i need to create seperate modules? ... at the moment i am just using the record macro option to record while i copy ...
    (microsoft.public.excel.programming)
  • Re: Hooking controls
    ... macro vendors will have a list of macros that you can call ... from your own code to work around the hooks. ... the XYZ macro is accessing another add-in: ... their template was dirtying the Normal template. ...
    (microsoft.public.word.vba.general)
  • Re: spellnumber
    ... ' Macro recorded 05/01/2001 by Shailesh Agrawal Associates ... CRORE = " Crore " ... Lakh = " Lakh " ... XYZ = "&" ...
    (microsoft.public.excel)
  • Re: Can search be constrained to a matching line?
    ... I tried writing a macro to search for "xyz" and then search for two ... Writing two macros might work. ... One to search for the string, ...
    (microsoft.public.word.general)
  • Re: Dynamic Named Cell
    ... Don Guillett ... Microsoft MVP Excel ... I'm OK with doing it in a macro. ... then define range name XYZ = B1 ...
    (microsoft.public.excel.programming)