来自第2个WB的第1个WB开放宏,关闭1-s WB并继续宏2-WB WB

时间:2018-06-12 02:39:41

标签: excel vba excel-vba events

你可以准确地告诉我,如何把这个命令(应用程序准时)我有问题。见下文,我尝试使用Application.Run

Sub FirstMacro() '
    Workbooks.Open Range("a1")      
    Application.Run, "Second.xlsm!module1.SecondMacro" 
End Sub 


Sub SecondMacro() '
    Workbooks("first.XLSM").Close SaveChanges:=True '
    'at this place macro interrupted, but i need to proceed this..
    Windows("Second.xlsm").Activate 
    Range("e4:l100").Select 
    Selection.Copy 
    'and next actions...
End Sub

0 个答案:

没有答案