Excel - macro or vb for deletion?

H

Harald Staff

Rightclick the sheet tab, choose "view code", paste this in:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target(1).EntireRow.Delete
End Sub

Now any row you select in that sheet will be deleted.

HTH. Best wishes Harald
 
Top