I need a macro to clear all text and values , except colored data
Your assistance is most appreciated
I need a macro to clear all text and values , except colored data
Your assistance is most appreciated
Re: Macro to clear text
Coloured background? Coloured text? Any conditional formatting? If so which version of Excel?
Re: Macro to clear text
Thanks for reply. It is text colored using fill color. There is no conditional formatting. I am using Office 2013
Re: Macro to clear text
Fill Colour is the background colour assigned to a cell so assuming you mean the Font colour.
Sub Clearit(r As Excel.Range)
Dim c As Excel.Range
For Each c In r
If c.Font.Color <> 0 Then
c.Clear
End If
Next
End Sub
Display More
Call it passing a range
or simply select some cells and pass the selection
Re: Macro to clear text
Thanks for the help
Don’t have an account yet? Register yourself now and be a part of our community!