How to call a macro when a cell goes from black text to red text
I have macro's in place to manually run if certain cells have red text. Is there a way to call a macro w/o manual intervention when a cells text changes from black to red?
Thanks
Microsoft Excel
Last Comment
dgd1212
8/22/2022 - Mon
Norie
How/why are you changing the cell colour?
Wilder1626
hI
You can do something like below:
Private Sub Worksheet_Change(ByVal Target As Range)Dim lRow As LongDim iCntr As LonglRow = 20For iCntr = lRow To 1 Step -1If Cells(iCntr, 1).Font.ColorIndex = 3 ThenCommandButton1.Value = TrueEnd IfNextEnd Sub