Deleting rows keeps rows with shaded cells

anaconda777

New Member
Joined
Nov 11, 2021
Messages
8
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

I used a code from this message board to delete rows where column C is blank, however it is keeping the rows where the cell is shaded with a color.

Clearing all colors prior to running the macro also does not seem to work.

Here is what I used. Any tips appreciated. PS - I am brand new at this.
 

Attachments

  • column C.jpg
    column C.jpg
    56.5 KB · Views: 12
I will try to put it all together again beginning with your code and then the mostly inconsequential formatting and learn how to post the code and not an image. Thanks.
If you look at a lot of postings in this forum you will see people here posting code all the time. Just copy the code and paste it here.
Click on the Icon that says VBA and then post the code between the brackets.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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