I'm trying to find the last row, that contains a value in a certain column (S) in my worksheet wsCopy. I am using this VBA code:
LastRow = wsCopy.Cells(wsCopy.Rows.Count, "S").End(xlUp).Row
However, it returns the last row with a formula (which is always further down), not the last row that contains actually a value. How could I change my code? I know there is a HasFormula property, I just don't know how to use it here. Thanks for your help