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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,558
Messages
6,125,507
Members
449,236
Latest member
Afua

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