#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default MacroCopy

How to copy macro from another file?
When i copy already, it seems that another file has to opened up.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default MacroCopy

To do it manually, you'll have to open both workbooks.

Then you can go to the VBE and select text in the procedure you want copied and
edit|copy.

Go to the other workbook's project and open a module and edit|paste. (or make a
new module and paste there.)

If you want to copy the entire module from one project to another project, you
can use

Ctrl-r (to see the project explorer)
select the module in the project that you want to copy
and drag it to the other workbook's project.

======
If you have the code in a text file (not within a workbook), you can use code to
import it into your project.

See Chip Pearson's site:
http://cpearson.com/excel/vbe.htm

kyoshirou wrote:

How to copy macro from another file?
When i copy already, it seems that another file has to opened up.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"