Hello all,
I have a sheet, that each time I add the No8 to Cell D, then click on the Delete Rows button, the entire Row is deleted.
What I require now, is when the Deleted Rows button is pressed, the row is removed from that sheet but is saved to another sheet.
This is the code I have to delete the Rows
Can you help with the update, so the Deleted Rows will be saved to another sheet.
Private Sub CommandButton1_Click()
With Sheets("Activity Rows Deleted")
LastP = .Range("D" & Rows.Count).End(xlUp).Row
Application.ScreenUpdating = False
For r = LastP To 2 Step -1
If .Cells(r, "D") = 8 Then .Cells(r, "D").EntireRow.Delete
Next r
End With
Application.ScreenUpdating = True
End Sub
Many thanks
Pugg
Bookmarks