Hi,
I am looking for a macro that will load a message box everytime a user of a spreadsheet wants to delete a cell or selection.
Basically, if you try to delete a cell, before the clear contents command is carried out, a message box pops up and asks if you wish to delete the cell or not.
The message box part I have (below) but I need coding before it that will make the emssage box show upon the delete command.
Any help would be much appreciated. Thanks.
I am looking for a macro that will load a message box everytime a user of a spreadsheet wants to delete a cell or selection.
Basically, if you try to delete a cell, before the clear contents command is carried out, a message box pops up and asks if you wish to delete the cell or not.
The message box part I have (below) but I need coding before it that will make the emssage box show upon the delete command.
If MsgBox("Are you sure you wish to delete this selection", vbYesNo) = vbYes Then Selection.ClearContents
Any help would be much appreciated. Thanks.