SkipVought
Programmer
Hi, Gabg!
Somewhere in the murky, lurky past year or so, I recall a discussion of the Used Range property and a caveat or two regarding its getting reset or not.
I am trying to identify the LAST ROW of data (not necessarily contiguous, otherwise, I'd be using CurrentRegion). But here's what's happnin'...
1. The last row of data is x
2. Data is entered in row x + 2
3. I use the following code to find x + 2...
4. The data in row x + 2 is deleted via .ClearContents method (Del key)
5. r2RT has the value of x + 1. I would expect x!
Does anybody have a clue about what is happening???
Thanx!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Skip,
SkipAndMary1017@mindspring.com
Somewhere in the murky, lurky past year or so, I recall a discussion of the Used Range property and a caveat or two regarding its getting reset or not.
I am trying to identify the LAST ROW of data (not necessarily contiguous, otherwise, I'd be using CurrentRegion). But here's what's happnin'...
1. The last row of data is x
2. Data is entered in row x + 2
3. I use the following code to find x + 2...
Code:
With ActiveSheet.UsedRange
r2RT = .Rows.Count + .Row - 1
End With
5. r2RT has the value of x + 1. I would expect x!
Does anybody have a clue about what is happening???
Thanx!
Skip,
SkipAndMary1017@mindspring.com