我有下面的代码,它在一小时前工作,现在突然不工作了:-(我在这里遗漏了什么吗?
Set NewWorkbook = Workbooks.Open("P:\Env_Check_Report\Results\" & "ENV_Report_ORG.xlsx", UpdateLinks:=True)
Set ReportWorkbook = Workbooks.Open("P:\Env_Check_Report\Results\" & "Report.xlsx", UpdateLinks:=True)
ReportWorkbook.Sheet5.Range("B2:T10").Copy _
Destination:=NewWorkbook.Sheet2.Range("B2:T10")