Sub DelLR()
Dim x as Long
With Sheets("Sheet1")
'Assumes last row of data found in column A (1)
x = .Cells(.Rows.Count, 1).End(xlUp).Row
.Cells(x, 1).EntireRow.Delete
End With
End Sub
And change the "Table1" name to your table.Just assign a button to below code
Code:Sub lastrowdel() Dim lastrow As Long Dim sht As Worksheet Set sht = ActiveSheet lastrow = sht.ListObjects("Table1").Range.Rows.Count Rows(lastrow).Delete End Sub
Sub Delete_Table_Lastrow()
'Modified 8/29/2018 8:49:18 AM EDT
Dim ans As Long
With ActiveSheet.ListObjects("Table1").Range
ans = .Rows.Count
.Rows(ans).Delete
End With
End Sub
Private Sub CommandButton2_Click()
'Modified 8/30/2018 7:27:44 PM EDT
With ActiveSheet.ListObjects("npss_quote").DataBodyRange
ans = .Rows.Count
.Rows(ans).Delete
End With
End Sub