Change all Conditional Formatting At Once?

mhenk

Well-known Member
Joined
Jun 13, 2005
Messages
591
I have a sheet with a fairly large amount of conditional formatting (all the same format, different conditions).

I would like to quickly change all of the (conditional) formats, but leave the conditions as is.

Can anyone think of a quick way to do this?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi mhenk

I read your question but I do not understand it.

Can you rephrase it, elaborate on it, post a clear working example?

Kind regards
PGC
 
Upvote 0
Simple example:

I have conditional formatting on 2 cells:

Cell A2: if Cell A1 is blank, Cell A2 is shaded blue
Cell B2: if Cell B1 is blank, Cell B2 is shaded blue

I would like to have a macro that changes all the "shaded blues" to something else...
 
Upvote 0
For your simple example, assuming the condition you are referring to is the condition no. 1:

Range("A2:B2").FormatConditions(1).Interior.ColorIndex = 3 ' Red

Hope this helps
PGC
 
Upvote 0
P. S. I assumed that you wanted the code for your simple example to tweak it and to include it in some vba program you have.

If you really just wanted to change the color you would just select the cells and use the format menu.
 
Upvote 0
:bump:

I guess what I need is a loop that will check each cell, and if it has conditional formatting, change the format, but not the conditions.
 
Upvote 0
Select all your "Conditional Format" cells.
Open Conditional Formating dialog box and change the format as desired.
It will change just the format, not the individual conditions.

An easy way to select all Conditional Format cells:
Edit | Go to
Special...
Click Conditional formats|
 
Upvote 0
I'm getting a "You must specify criteria for all conditional formats" error. This is what I originally tried to do...
 
Upvote 0
You are correct, if your conditional formats (CF's) are varied, you can't do them all at once.

I was able to change CF's in groups.
If you have very divergent CF's, you will have to work with just similar CF's, like all CF's in one column.
 
Upvote 0

Forum statistics

Threads
1,214,397
Messages
6,119,273
Members
448,883
Latest member
fyfe54

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