Conditionally delete

  • Thread starter Thread starter James
  • Start date Start date
J

James

Hi,

Does someone have script that will allow me to delete all cells that
are blue (in a worksheet)? Or does it have to be cell specific?
Thanks.

James
 
Are the cells colored blue manually or by Conditional Formatting?

If by CF, use the same criteria to select the cells.

By "delete" do you mean clear contents or delete>shift up or left?

If manually formatted to blue...................

If you have Excel 2003(don't know about 2007)

You could try this alternate method which doesn't use VBA or any add-ins.

In 2003 you can specify the Format color to look for under
Edit>Find>Options>Format>Format.

Select the color from the Patterns dialog and Find All.

In the found dialog box the first cell will be highlighted.

SHIFT + End + Down Arrow to select all found cells.

The selected cells can then be Edit>Cleared or Shifted.

Otherwise you would need VBA


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Conditional Printing 1
Excel Highlighting duplicates 0
Excel Conditional Formatting 1
Excel Conditional Formatting Removal 7
Sharing workbooks limitations - Merged Cells 12
Excel VBA 1
Conditional Formatting with VBA 4
Deleting rows which contain blank cells 11

Back
Top