I am almost there I think.
But this seems to search for data in all columns on the first sheet. I only want to check column A on Sheet 1.
Sub FindLastRow()
Dim LastRow As Long
With Sheets("Sheet 1")
If WorksheetFunction.CountA(.Cells) > 0 Then
'Search for any entry, by searching backwards by Rows.
LastRow = .Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
End If
Range("B16:AS" & LastRow).FillDown
End With
End Sub
But this seems to search for data in all columns on the first sheet. I only want to check column A on Sheet 1.
Sub FindLastRow()
Dim LastRow As Long
With Sheets("Sheet 1")
If WorksheetFunction.CountA(.Cells) > 0 Then
'Search for any entry, by searching backwards by Rows.
LastRow = .Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
End If
Range("B16:AS" & LastRow).FillDown
End With
End Sub