Hello everyone,
I got into discussion with my friend a couple of days ago in regards to Range.Cells and its usage.
How I understood this method so far is that, if for example you have Range("A1:C3") and you say Range.Cells(2,2) it would refer to second row second column in my range, which would be B2.
However, my friend has been using this method as an offset, by referring to cell outside this range.. For example, he has Range("A1") and if he does Range.Cells(2,2) it would still select B2, even though it is not part of the range.
My assumption was that Excel is assuming something and this is why it behaves as my friend expects it, however, I just tried having Range("A1:C3") and referring to Cells(10,10) and it still worked.
Anyone can give some explanation about the situation... Ty in advance
I got into discussion with my friend a couple of days ago in regards to Range.Cells and its usage.
How I understood this method so far is that, if for example you have Range("A1:C3") and you say Range.Cells(2,2) it would refer to second row second column in my range, which would be B2.
However, my friend has been using this method as an offset, by referring to cell outside this range.. For example, he has Range("A1") and if he does Range.Cells(2,2) it would still select B2, even though it is not part of the range.
My assumption was that Excel is assuming something and this is why it behaves as my friend expects it, however, I just tried having Range("A1:C3") and referring to Cells(10,10) and it still worked.
Anyone can give some explanation about the situation... Ty in advance