G
Guest
Hi all, I don't know if it's the right nwgp, but I hope someone could help me ...
I've got a problem writing a code in a file (A) tha
runs macros in other files (in my example, I open file B that contains
"MacroB" I want to run, from file A)
I've written as follow, but I always have an "error-1004"
Where's my error
Sub InsertMacro(
Range("A2").Selec
Workbooks.Open Filename:="C:\...\B.xls
Sheets("Sheet1").Activat
Application.Run "MacroB
ActiveWorkbook.Sav
ActiveWindow.Clos
End Su
Thanks to all
I've got a problem writing a code in a file (A) tha
runs macros in other files (in my example, I open file B that contains
"MacroB" I want to run, from file A)
I've written as follow, but I always have an "error-1004"
Where's my error
Sub InsertMacro(
Range("A2").Selec
Workbooks.Open Filename:="C:\...\B.xls
Sheets("Sheet1").Activat
Application.Run "MacroB
ActiveWorkbook.Sav
ActiveWindow.Clos
End Su
Thanks to all