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 closes

currently, 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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -