If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How do I call an excel macro from outside the workbook?
I have an excel workbook that opens another excel workbook. I would like to
run a macro in the other workbook.. so far I have public oexcel as new Excel.Application oExcel.Workbooks.Open("newstuff.xls") how can I run a macro within newstuff.xls? Thanks! Kenji |
#2
|
|||
|
|||
How do I call an excel macro from outside the workbook?
"Kenji" wrote...
I have an excel workbook that opens another excel workbook. I would like to run a macro in the other workbook.. so far I have public oexcel as new Excel.Application oExcel.Workbooks.Open("newstuff.xls") how can I run a macro within newstuff.xls? Application.Run "newstuff.xls!YourMacroNameHere" |
Thread Tools | |
Display Modes | |
|
|