Copy macros from one template to another

J

Jonas

I'm using Word 2000, Win2000.
I have made several templates with macros using the Record Macro
function. Now I want to copy all the macros from one template to the
others. I have named my set of macros IngeborgsMakro instead of
NewMacros.

I've tried to copy by going to Tools - Macro - Macros - Assistent (?
Norw. name, do not know the English name, maybe Oraganizer?) It works.
When I copy IngeborgsMakro form one template ot another and opens the
second template, alle the macros are there. BUT the shortcut keys do
not work!

I have assigned shortcut keys by going to Tools - Customise - Keyboard
- Macros but it seems like these are not stores in IngeborgsMakro and
hence are not copied.

I would like to copy all the macros AND their shortcuts and not having
to assign the shortcut keys in every template. Is there a way to do
this? Is it possible to write a code within the macro in VBA that
tells the shortcut key of that macro?

One of my macros could look like this:
Sub anførselstegn()
'
' anførselstegn Makro
' Makro registrert 13.06.2003 av Ingeborg Altern Vedal
'
Selection.TypeText Text:="«» "
Selection.MoveLeft Unit:=wdCharacter, Count:=2
VBA-CODE THAT SAYS CONTROL+< WILL RUN THIS MACRO.

End Sub

I hope someone may help me! :)
 
C

Charles Kenyon

Word is not able to copy shortcut keys, directly. First copy the macros and
toolbars. Then download the shortcut organizer from
<URL: http://www.chriswoodman.co.uk/Shortcut Organizer.htm>. It is a
utility you can use to copy keyboard shortcuts.
--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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