I’m trying to write a macro that deletes the row of the active cell but if the selected cell is out of a specified range a message is displayed.
Any help is appreciated, the code I have so far is below.
![]()
If ActiveCell.Range("A13, C12") Then ActiveCell.EntireRow.Delete Else MsgBox "You must select a cell within the range A13 to C12" End If
Bookmarks