Sub 选择粘贴()
Dim ro As Integer, i As Integer, col As Integer
For i = 2 To Sheets.Count
ro = Sheets(i).Range("a666").End(xlUp).Row
col = Sheets(i).Range("H1").End(xlLeft).Column
Sheets(i).Range(Cells(2, 1), Cells(ro, col)).Copy Sheets(1).Range("a6666").End(xlUp).Offset(-1, 0)
Next i
End Sub
这个程序提示 应用程序定义或对象定义出错
求大神 拯救
亲,代码如下。
假设你的文件在“d:\test\A.xls”。
Sub hz()大神 我只是不明白 我的程序为啥实现不了
追答col = Sheets(i).Range("H1").End(xlLeft).Column,这一句,其中的xlleft应该是xltoleft