Macro to delete table rows

jpencek3

New Member
Joined
Feb 22, 2018
Messages
16
I have a table labeled "Disputes" that has its headers in cells F29-R29. Column R29 of the table is a helper column I added in with an equation that lets me know which rows of the column can be deleted

Formula in column R:

=IF(OR([@[Date Resolved]]>DATE(YEAR(TODAY())-2,MONTH(TODAY()),1),[@Status]="Open Disputes"),"Don't Delete","Delete")

Can someone help me either:

1. Write a macro that will delete rows in the table "Disputes" based on that formula above where I don't need the helper column and can remove it (ideal solution)

or

2. Write a macro that will delete rows in the table "Disputes" using the helper column I added in column R? Basically delete every row of the table that has the word "Delete" written in column R


I only need the row of the table deleted, not the spreadsheet row, because there is a different table to the left of this one that needs to remain intact.

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,213,487
Messages
6,113,938
Members
448,534
Latest member
benefuexx

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