0
請解釋一下,爲什麼第二個變種更快?爲什麼變化excel值的變體差異如此之大?
iTimer! = Timer
sname = Split(Cells(2, 300).Address, "$")(1)
Range("A300:" & sname & "600").Value2 = Range("A300:" & sname & "600").Value2
MsgBox "Time is " & _
Timer - iTimer! & " sec.", vbExclamation, ""
執行〜1秒
iTimer! = Timer
sname = Split(Cells(2, 300).Address, "$")(1)
Range("A1:" & sname & "300").Select
Range("A300:" & sname & "600").Value2 = ActiveCell.Value2
MsgBox "Time is " & _
Timer - iTimer! & " sec.", vbExclamation, ""
執行〜0.01秒