I have a table I would like to clear, getting object required
error on my range line.
I also have tried other things but it tends to also clear the current page im on.
Sub ClearDatabase()
With ThisWorkbook.Worksheets("database").Select
Range("A2:FR" & .Cells(.Rows.count, "A").End(xlUp).row).ClearContents 'adjust this if needing to clear more
End With
End Sub