Avatar of route217
route217
Flag for United Kingdom of Great Britain and Northern Ireland asked on

pasting font colour from conditional formatting to permanent in excel

Hi experts using excel 2010

I want to paste the conditional formatting colours from the CF rules to permanent colour in excel..how could I do this using vba or another method..

Data range is q11:AA200
Microsoft Excel

Avatar of undefined
Last Comment
route217

8/22/2022 - Mon
Professor J

easy way is to Copy/paste to Word and back to Excel appears to convert any kind (font, border, pattern) of conditional format to regular explicit format.
SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Professor J

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Ryan Chong

opps, repost:

Sub test()
    Dim r As Range, c As Range
    
    Set r = Range("A1:A10")
    
    For Each c In r
        c.Interior.Color = c.DisplayFormat.Interior.Color
    Next
    r.FormatConditions.Delete
End Sub

Open in new window

Professor J

the solution i uploaded, takes care of all formatting from conditional formatting not just the color. i.e Font Style, Underline and Strikethrough Font Color etc.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
route217

ASKER
Thanks for the excellent feedback...all experts..

Both methods work fine