SpecialCells Delete Based on Interior Colo

VenturSum

Board Regular
Joined
May 23, 2010
Messages
138
Hi All,

I have column of cells that I loop through
and delete the cell if the interior color = vbCyan

I'm wondering if It's possible to delete (shift:=xlup) cells using SpecialCells in the column where Interior.Color=vbCyan.

Any thoughts?

John,
In Annapolis
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How are these cells colored? Is it through a conditional format, or are they manually colored cyan?
 
Upvote 0
Hi,

The cells are colored via VBA during a change event:

Private Sub Worksheet_SelectionChange()

When the user clicks on the cell, the background color and pattern change toggle back and forth between colored and no color / no pattern.

Once selected I remove the cells with No coloring and No pattern using a loop.

And I'm looking for a faster process than using the loop.

Thank you,

John
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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