Hello,
I feel frustrated with the behavior of EntireRow.Delete. I show it in the short snippet below.
Simply, I populate a table with 1 line (by hand or with the button 'populate') : the line contains 3 values : "1" , "91" , a date.
Then, I try to erase the lines (I know there is only one ) that contain "91" in the second column...
This works well with the EntireRow.Delete method : Excel erases my unique line (and keeps the header line) and this is fine.
But, after deleting this line, I get Range('A1').End(xlDown).Row = 1048576 (the max!) and I don't understand why.
I was expecting this value to be "1" (I still have my line with the titles).
By the way, the value of Source.Cells(Source.Rows.Count, "A").End(xlUp).Row shows the correct value ("1") but I don't understand why Range('A1').End(xlDown).Row does not...
Range('A1').End(xlDown).Row does not count the nb of lines before the first blank cell in A ?
Thanks for any help, Pierre
Bookmarks