Declaring a Range Object
Another reason is that
Set bRng = Worksheets(2).Range("A1"),
Set aRng = Range(bRng(1,1), bRng(n,1))
is faster as well.
And, if looping or multiple uses are required in the application, after
Set bRng = Worksheets(2).Range("A1"),
Set aRng = Range(bRng(1,1), bRng(n,1)) is faster than
Set aRng = Worksheets(2).Cells(1, 1).Resize(n, 1)
Alan Beban
JE McGimpsey wrote:
Only reason I can think of is that
Set aRng = Worksheets(2).Cells(1, 1).Resize(n, 1)
is faster than the additional reference resolution in
With Worksheets(2)
Set aRng = .Range(.Cells(1, 1), .Cells(n, 1))
End With
In article <MPG.1b1bb58da25e61729897ed@news-server,
Tushar Mehta wrote:
No reason to abandon the Cells property.
|