essjayhaitch
New Member
- Joined
- Mar 20, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hi There
So I need a code for deleting the single row where the active selected cell is, but only if the corresponding cell in column AQ of that row has not got data in it.
eg.
I've selected F6 and only want to delete that row if AQ6 is empty.
The active cell selection is dynamic so could be any row number or column.
Ultimately, what I'm trying to achieve is for certain rows never to be allowed to be deleted but I can't use sheet protection for other reasons so I am using data in column AQ (which will be hidden) as the reference.
Thanks in advance
So I need a code for deleting the single row where the active selected cell is, but only if the corresponding cell in column AQ of that row has not got data in it.
eg.
I've selected F6 and only want to delete that row if AQ6 is empty.
The active cell selection is dynamic so could be any row number or column.
Ultimately, what I'm trying to achieve is for certain rows never to be allowed to be deleted but I can't use sheet protection for other reasons so I am using data in column AQ (which will be hidden) as the reference.
Thanks in advance