Copy Macro

T

Thejan Mendis

Hi,

How do I copy a macro in one of .dot file to a normal dot or other.


THEJAN
 
M

Malcolm Smith

The best way is to go into the IDE (alt-F11) and then drag and drop the
module to the other template. Or if it's just a couple of routines then
make a module in the target template and then copy, via the clipboard, the
code which you want.

I prefer to do it manually and not use the Organiser; but that's a
personal choice.

Also, if I am copying the code so that it will be always resident then I
would suggest creating a new start-up template (i.e. one which lives in
the start-up folder) and not place it into the normal.dot template.

See discussions 'passim' on this one.

Cheers
- Malc
 
L

Larry

There is no built-in way of copying a single macro. You can only copy
the entire module of which the macro is a part, which the other
responders have mentioned. If you don't want to copy the entire module,
just open the VB code window, and select and copy the macro itself,
starting with the line that says "Sub" and ending with the line "End
Sub," and paste it into the code window of the destination template or
document.

Larry
 
C

Charles Kenyon

--
See <URL: http://addbalance.com/word/movetotemplate.htm> for step-by-step
instructions on moving / sharing / copying customizations including
AutoText, AutoCorrect, keyboard assignments, macros, etc.


--

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