If Cell Equals "" Delete Row Macro

shawn2209

New Member
Joined
Jul 15, 2017
Messages
18
I am needing a macro formula for if a cell = "DELETE ME" then it will delete that row.
 
My last macro in thread 9 should do exactly what you're asking in thread 10 :confused:

Make a copy of the workbook (via Windows or SaveAs) and try it.
 
Last edited:
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Thank you so much Trebor76. That works great. I do have another question. If I want it to delete cells A:F and Move data up after deletion. What macro would I need for that?
 
Upvote 0
Not sure I'm afraid as in my mind deleting the row working backwards would do that??

There'll be someone here who will be able to solve it for you I'm sure.

Good luck with it.

Robert
 
Upvote 0
If I want it to delete cells A:F and Move data up after deletion.
If you do that, your formula in column L on that row will return a #REF! error because the cells in columns B, D, E & F that the formula on that row refers to will have been deleted.
 
Upvote 0

Forum statistics

Threads
1,216,209
Messages
6,129,517
Members
449,515
Latest member
lukaderanged

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top