route217
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.
ASKER
Thanks for the excellent feedback...all experts..
Both methods work fine
Both methods work fine