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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,224,009
Messages
6,175,922
Members
452,684
Latest member
RRaively1

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