sijpie
Well-known Member
- Joined
- Nov 1, 2008
- Messages
- 4,269
- Office Version
- 365
- Platform
- Windows
- MacOS
I was digging into VBA to see how I could optimise things, and discovered several ways of accessing cells of a range, two of which seem to be identical. Does someone know the difference?
In fact I think the quickest notation to the top-left cell of a range is:
Code:
Range("A1:G20").Item(2,4)
' is the same as
Range("A1:G20").Cells(2,4)
'both pointing to cell D2
In fact I think the quickest notation to the top-left cell of a range is:
Code:
Range("MyRange").Item(1)