K
Karen53
Hi,
Is there a way to catch when cells are deleted from certain columns of a
worksheet?
Is there a way to catch when cells are deleted from certain columns of a
worksheet?
Jacob Skaria said:Hi Karen
There is no delete event as such; however if you want to track a particular
column try the below..
--If you want to track deletion in ColA
--Select a cell out of the data area in ColA..say (cell A100)
--Define a name say 'lastRow' and enter the row number 100 in the cell
--The below will compare the named range value and its current row number.
If the row number is smaller those are deletions ...
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("lastRow").Row < Range("lastRow").Value Then _
MsgBox "Cells deleted from ColA"
End Sub
If this post helps click Yes