Hi, XeRo Solus,
Perhaps this should be another thread
Agreed.
It depends on what I want to do. If filling formulas into cells I would rely on the R1C1 notation which would deliver an absolute cell reference if you use R5C5 meaning E5 and a relative one using R[5]C[5] standing for activecell and offset of 5 rows down and 5 column to the right (negative values would be up and to the left).
I mostly work with Range which may be set like
except if I had to loop through columns and rows with non-adjacent cells (if avoiding to build up ranges first or using Arrays with Row numbers and Column letters).
Any use referring to the original cell may be covered by using Offset like
where i is a Long (at least if I were to Dim it). And of course that may be negative values but for A1 it´s hard to imagine that there is a negative column or row (should lead to a run-time error).
Please check the VBA help for more information on that: go to the VBE, press F2 to get up the Object Catalogue and enter either Cells or Range into the search field and have a read about these items and where they are located in the Excel Application model. Or check out http://support.microsoft.com/kb/291308.
HTH,
Holger
Bookmarks