I have a protected sheet. I written macros to add and delete rows. if a user accidentally deleted a row using the macro, how would you undo what he did.
ie.
Sub Delete()
ActiveSheet.Unprotect password:="test"
ActiveCell.EntireRow.Delete
ActiveSheet.Protect password:="test"
End Sub
ie.
Sub Delete()
ActiveSheet.Unprotect password:="test"
ActiveCell.EntireRow.Delete
ActiveSheet.Protect password:="test"
End Sub