我在此代码上不断收到错误 1004“复制区域的大小/形状不同”:
我试过在一些地方插入各种 .pastespecials、.selection.autofit ......但我有点在黑暗中刺伤。
帮助?
Sub SaveData()
Dim rr As Range
Set rr = Selection
For Each Row In rr
'error occurs here'
Range("a" & i & ":BN" & i).Copy Worksheets("ArchiveData").Cells(Worksheets("ArchiveData").Rows.Count, "b").End(xlUp).Offset(1, 0)
Sheets("ArchiveData").Cells(Worksheets("archivedata").Cells(Rows.Count, 2).End(xlUp).Row, 1).Value = Date
Next Row
结束子