我一般是使用UsedRange,直接复制到数组中处理,例如:
arr = Sheets("数据").UsedRangefor i = 1 to ubound(arr) for j = 1 to ubound(arr,2) msgbox "arr("& i & "," & j &")=" & arr(i,j) next inext i
Rng.SpecialCells(xlCellTypeLastCell)