为什么总提示下标越界,如何修改 5
Application.ScreenUpdating=FalseApplication.Calculation=xlCalculationManualApplicatio...
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
For i = 1 To 78
Workbooks.Open Filename:="D:\固定资产\固定资产\2017年\201712\分公司上报\" & a(i) & ".xls"
Sheets("固定资产").Select
Range("A1:V1000").Copy
ThisWorkbook.Activate
Sheets(a(i)).Select
Range("A1").PasteSpecial Paste:=xlPasteValuesAndNumberFormats
Application.CutCopyMode = False
fms = a(i) & ".xls"
Windows(fms).Close savechanges = False 展开
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
For i = 1 To 78
Workbooks.Open Filename:="D:\固定资产\固定资产\2017年\201712\分公司上报\" & a(i) & ".xls"
Sheets("固定资产").Select
Range("A1:V1000").Copy
ThisWorkbook.Activate
Sheets(a(i)).Select
Range("A1").PasteSpecial Paste:=xlPasteValuesAndNumberFormats
Application.CutCopyMode = False
fms = a(i) & ".xls"
Windows(fms).Close savechanges = False 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询