VBA - Delete entire row if criteria is not met

Lalo2DaG

New Member
Joined
Oct 8, 2015
Messages
8
Can someone please help me with VBA code. Here is my real world scenario. I have a report that contains several different statuses. I only need 4 of the many statuses. Ideally, the VBA code would delete rows that does not contain the 4 statuses. In addition, I would also like the code to not delete the first 7 rows at all. The first 7 rows contain miscellaneous information including the headers. Any help with this would be greatly appreciated.

FYI - I was on another thread and it was suggested that I may try my own thread to meet my needs. Here is the link to the thread I was on.

http://www.mrexcel.com/forum/excel-...applications-delete-row-if-cell-contains.html
 

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