ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Call a macro in other workbook (https://www.excelbanter.com/excel-programming/285682-call-macro-other-workbook.html)

Davwe[_4_]

Call a macro in other workbook
 
Ho can I call a macro in an other Excel workbook that is in an other
dir.


---
Message posted from http://www.ExcelForum.com/


Chip Pearson

Call a macro in other workbook
 
You have to open the workbook first in order to execute the
macro. Then use Application.Run to execute that actual macro.
E.g.,

Application.Run "Book2.xls!TheMacro"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Davwe" wrote in message
...
Ho can I call a macro in an other Excel workbook that is in an

other
dir.


---
Message posted from http://www.ExcelForum.com/




Davwe[_5_]

Call a macro in other workbook
 
Thanks, it works :-))))


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 01:30 AM.

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