I'm successfully finding the last row - at least that's what the MsgBox tells me. The problem is that the first row is being deleted instead of the 31st row (which it is finding).
Sub testDelete()
Dim LastRow As Long
LastRow = ActiveSheet.Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
MsgBox ("Last Row is: " & LastRow - 1)
Worksheets("A").Cells(LastRow - 1).EntireRow.Delete
End Sub
I also tried .ClearContents
and
Delete Shift:=xlShiftUp
Thank you -
Sub testDelete()
Dim LastRow As Long
LastRow = ActiveSheet.Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
MsgBox ("Last Row is: " & LastRow - 1)
Worksheets("A").Cells(LastRow - 1).EntireRow.Delete
End Sub
I also tried .ClearContents
and
Delete Shift:=xlShiftUp
Thank you -