Reputation: 1795
I'm trying to delete the last row of an Excel spreadsheet, but I don't know the format of the argument to put into the rows.delete command. It keeps giving me an error.
LastRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious)
Rows("LastRow").Delete 'error type mismatch
Any suggestions to the argument for rows.delete?
Upvotes: 0
Views: 152