ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro call from another Macro (https://www.excelbanter.com/excel-programming/420957-macro-call-another-macro.html)

Fan924

Macro call from another Macro
 
I have MacroNo1. I call MacroNo2, it does it's job and returns. How
can I bring back variable "TempData" from MacroNo2 and use it in
MacroNo1?

Rick Rothstein

Macro call from another Macro
 
Dim it outside of the macros (in the General Declarations section of the
module where your macros are).

--
Rick (MVP - Excel)


"Fan924" wrote in message
...
I have MacroNo1. I call MacroNo2, it does it's job and returns. How
can I bring back variable "TempData" from MacroNo2 and use it in
MacroNo1?




All times are GMT +1. The time now is 02:43 PM.

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