Sub FindLast()
Dim ws As Worksheet: Set ws = ThisWorkbook.Sheets("Sheet1")
Dim LCol As Long, Found As Range
LCol = ws.Cells(1, ws.Columns.Count).End(xlToLeft).Column
Set Found = ws.Range(ws.Cells(1, 1), ws.Cells(1, LCol)).Find("Dog", SearchDirection:=xlPrevious)
If Not Found Is Nothing Then Found.Offset(1, 0).Select
Range(ActiveCell, ActiveCell.End(xlDown)).Select
End Sub
The above is what I have so far, with all but the last line finding the last instance of the header of "Dog" in Sheet1. It's the last line that's causing issues. I have tried every conceivable method of selecting down the column, but I keep getting error 400. Any help appreciated.
Bookmarks