This is what I'm trying to do.
- Run macro in file x
- File x macro opens file y
- Then calls file y's macro
- File y's macro runs
- File y closes
Currently, I'm getting as far as opening file y from file x's macro, but the macro ends once file y is open and doesn't step through past opening.
I had a look and attempted using info from this thread Run excel macro on multiple files, but it didn't help.
Appreciate any help anyone can offer.
Here is the part of my code it gets to before ending. This opens file y, but ends the macro;
Workbooks.Open (MyPath & FileY & ".xls")
I want the macro to then do this;
ActiveWorkbook.Application.Run FileYsMacro
Thanks.