ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro in different books (https://www.excelbanter.com/excel-programming/274852-macro-different-books.html)

VL

Macro in different books
 
Hi,
this might be simple.
I would like to run a macro in one workbook that transfers
data between to other workbooks. My problem is that the
names of these two books gets recorded. Is there a way to
make the macro run using books having different names each
time?
Thanx!

Peter Atherton

Macro in different books
 
Hello

Save the workbook as Start and this will open each time
you use Excel. Then the macro will be available to other
workbooks that are opened.

Regards
Peter
-----Original Message-----
Hi,
this might be simple.
I would like to run a macro in one workbook that

transfers
data between to other workbooks. My problem is that the
names of these two books gets recorded. Is there a way to
make the macro run using books having different names

each
time?
Thanx!
.


Tom Ogilvy

Macro in different books
 
How would you communicate to the macro the names of the workbooks.

Regards,
Tom Ogilvy

"VL" wrote in message
...
Hi,
this might be simple.
I would like to run a macro in one workbook that transfers
data between to other workbooks. My problem is that the
names of these two books gets recorded. Is there a way to
make the macro run using books having different names each
time?
Thanx!





All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com