Making VBA select rows that have desired paramters

Ruky

New Member
Joined
Sep 20, 2011
Messages
9
Hi,

So far I am capable in creating a loop that deletes a row with specific parameters (like font color is vbred). But this requires me to re-run the loop because the current approach I am using ("for each" loop) is causing the loop to jump over a row that I want to delete.

For example:
R1 To delete
R2 To delete
R3 To delete
R4 To delete

**After running the loop I still have

R2 To delete
R4 To delete

Is there another approach to identifying, selecting, and deleting the rows besides using a "for each" loop? Could I do this in one go?

Thanks,
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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