Excel VBA - Run Macro / Open another file / Run that files macro / Save & Close -
Excel VBA - Run Macro / Open another file / Run that files macro / Save & Close -
this i'm trying 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 closescurrently, i'm getting far opening file y file x's macro, macro ends 1 time file y open , doesn't step through past opening.
i had , attempted using info thread run excel macro on multiple files, didn't help.
appreciate help can offer.
here part of code gets before ending. opens file y, ends macro;
workbooks.open (mypath & filey & ".xls")
i want macro this;
activeworkbook.application.run fileysmacro
thanks.
don't utilize activeworkbook. use:
workbooks("workbookname").application.run
excel vba excel-vba
Comments
Post a Comment