我有下面的代码是工作一个小时回来,现在不工作suddenely :-( 我在这里缺少什么Excel的VBA:复制范围到一个新的工作簿
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")
请告诉我运行时错误?哪一行给出错误? – Santosh 2013-05-06 20:03:12
对象不支持此属性或方法是错误。它投掷在最后一行,我复制粘贴 – Jill448 2013-05-06 20:05:13
行*的哪部分*给你的错误?它是否是“ReportWorkbook.Sheet5”?或者'ReportWorkbook.Sheet5.Range(“B2:T10”)'?或'ReportWorkbook.Sheet5.Range(“B2:T10”)。Copy'?或者...你明白了。 – 2013-05-07 07:28:29