I have a macro which deletes the selected record But it doesnot alert any message before delete I want that the when the code will be run, a alert msg should pop up asking "Do you really want to delete the record?" if the user clicks "Yes" then the record should be deleted and if the user clicks "No" , no deletion should take place and the msg box should go off the screen.
Sub DeleteRecord()
Dim intActiveRow As Integer
Application.ScreenUpdating = False
intActiveRow = ActiveCell.Row
ActiveSheet.Unprotect password:="abcd"
With Range("A" & intActiveRow)
.EntireRow.Delete
End With
ActiveSheet.Protect password:="abcd"
Application.ScreenUpdating = True
End Sub