Hi Dhimit,
There is no direct way to know if a row has been deleted, but here is an indirect method:
_________________________________________________________
Dim UsedRows As Long
Private Sub Worksheet_Change(ByVal Target As Range)
'Check if entire row modified
If Target.Address = Target.EntireRow.Address Then
If UsedRows = 0 Then Exit Sub
'Check if number of rows has decreased indicating deletion
UsedRows = Me.UsedRange.Rows.Count
If Me.UsedRange.Rows.Count < UsedRows Then
MsgBox "Row Deleted", vbInformation
End If
UsedRows = Me.UsedRange.Rows.Count
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'update UsedRows count in case row added or deleted
UsedRows = Me.UsedRange.Rows.Count
End Sub
_________________________________________________________
This is worksheet event code so must be placed in the Worksheet's code module. To do this, right-click on the source worksheet's tab, select View Code, and paste this code into the Code pane.
This code keeps track of the number of used rows on the sheet in order to determine if a row has been added or deleted, and also to determine which (insertion or deletion) is the case.