Hi all, I'm using the following VBA in a worksheet (the worksheet is called DataEntry), and would appreciate help with the following :
Sub DeleteRow()
Rows(ActiveCell.Row).Delete
End Sub
I need to amend it, so it can only work with the named range called "Database" which is a section of the worksheet called DataEntry
i.e so if I'm on a cell not within that range called "Database" then I don't want the VBA to operate, but would be great if a message popped up that said "Unable to delete data from this section"
Also would be great when in the range called "Database" (and the VBA triggered) to get a popup message that says "Are you sure you want to delete this Data" (yes or no)
before the VBA operates (if no, then VBA doesn't operate)
Sub DeleteRow()
Rows(ActiveCell.Row).Delete
End Sub
I need to amend it, so it can only work with the named range called "Database" which is a section of the worksheet called DataEntry
i.e so if I'm on a cell not within that range called "Database" then I don't want the VBA to operate, but would be great if a message popped up that said "Unable to delete data from this section"
Also would be great when in the range called "Database" (and the VBA triggered) to get a popup message that says "Are you sure you want to delete this Data" (yes or no)
before the VBA operates (if no, then VBA doesn't operate)