How to run macro from another file

  • Thread starter Thread starter Piotr
  • Start date Start date
P

Piotr

Hi,
is it possible to have vba code in workbook ehich would do:

Workbooks.Open Filename:="D:\somefile.xls"
'and then
run Sub one - this I have no clue how to make ?
run Sub two
run Sub three
and
ActiveWorkbook.Close
 
Application.Run "'somefile.xls'!SubOne"
Hi,
is it possible to have vba code in workbook ehich would do:

Workbooks.Open Filename:="D:\somefile.xls"
'and then
run Sub one - this I have no clue how to make ?
run Sub two
run Sub three
and
ActiveWorkbook.Close
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top