Need To ID A Cell If Text In A Cell Is In Color

HowdeeDoodee

Well-known Member
Joined
Nov 15, 2004
Messages
599
I need a formula or macro to ID whether a cell contains text in any color other than the default black. The column with the color text to be ID'd is column C. When the macro or formula is run I want the macro or formula to say "color" in column D if any cell in col C has text with color.

Thank you in advance for any replies.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try

Code:
Sub Colors()
Dim c As Range, LR As Long
LR = Range("D" & Rows.Count).End(xlUp).Row
For Each c In Range("D1:D" & LR)
    If c.Font.ColorIndex <> xlAutomatic Then c.Offset(0, -1).Value = "Color"
Next c
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,336
Members
449,218
Latest member
Excel Master

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