I'm trying to delete all but the header row in a spreadsheet when a button is clicked. I'm using the code below which works perfectly except that it is deleting the header row as well.
Set ws = Worksheets ("Claims")
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row)
ws.Range ("A2:A" & LastRow).EntireRow.Delete
Set ws = Worksheets ("Claims")
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row)
ws.Range ("A2:A" & LastRow).EntireRow.Delete