pasting font color from conditional format to permanent

henway

Board Regular
Joined
Jul 19, 2006
Messages
85
Sounds simple.
I have backwards co-workers that can't figure out how/why to use conditional formatting and have deigned it "not acceptable".

They've requested I fill in a HUGE spreadsheet and change the font color to red if it meets a criteria.

Simple enough to do with a conditional format that compares my data.

HOWEVER, now I need the individual cells to stay red and remove the conditional format (because conditional formatting "confuses" them). Removing the condition causes the color to go back to black. I've tried all sorts of paste specials (formula/format) to no avail...

Any ideas on how to do this?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Let's say your criteria is cell >10. So something like this
Code:
Sub ConvertCF()
Dim cl As Range
For Each cl In Range("$A$2:$A" & Range("$A$65536").End(xlUp).Row)
If cl > 10 Then cl.Font.ColorIndex = 3
Next cl
End Sub

Post back your specifics

lenze
 
Upvote 0
Thank you--I'll try it. I shy away from VBA, but I'll give it a whirl and see what happens.
 
Upvote 0
You might want to change it slightly
Code:
Sub ConvertCF()
Dim cl As Range
For Each cl In Range("$A$2:$A" & Range("$A$65536").End(xlUp).Row)
If cl > 10 Then 
     cl.Font.ColorIndex = 3
Else: cl.Font.ColorIndex = xlAutomatic
End If
Next cl
End Sub

lenze
 
Upvote 0
Thank you--I tried it but I don't think I properly explained the problem.

For conditional formatting, I have column J looking at column U and turning red if each cell in the column is less than U.

It looks perfect.

However, I need to somehow remove the conditional formatting and have the cells that were red remain so, and the other ones (black) stay black.

I don't have a global cell to be greater or smaller than. Column J has lots of lines---autofilter for [Red] doesn't work, either...
 
Upvote 0
Code:
Sub Convert CF()
Dim cl as Range
For Each cl In Range("$J$2:$J" & Range("$J$65536").End(xlUp).Row)
If cl < Cells(cl.Row,"U") Then
     cl.Font.ColorIndex = 3
Else:Font.ColorIndex = xlAutomatic
End If
Next cl
End Sub

lenze
 
Upvote 0
I've gotten stuck in VBA. I tried to make a module for this and it won't save it and can't find it when I try to run it, nor is "Create" highlighted. First time with VBA--sorry.......

Any ideas OUTSIDE of VBA?
 
Upvote 0
Simply use the AutoFilter and for the column in question and in the custom option put in a formula that meets your current condition format. Now that you have these cells filtered, select the column and apply the formatting you need (ie red). Now you can just remove the conditional format and these cells will remain red.

You should point out to your colleagues that c/f will amend the format automatically, so if they change any values then the font of course wont change to red so on their head be it!

cheers,
Graham
 
Upvote 0
Thanks, but I don't think your solution works.

For each cell in J, the conditional format is:
If cell value is greater than J*0.9
then format the font to be RED

The filter can only look for absolutes, not relatives.
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,538
Members
449,038
Latest member
Guest1337

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