Macro: change cell color based on value in another cell
Closed
randal.hite
Posts
1
Registration date
Monday December 6, 2021
Status
Member
Last seen
December 6, 2021
-
Updated on Mar 3, 2022 at 11:58 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen January 16, 2023 - Mar 3, 2022 at 11:27 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen January 16, 2023 - Mar 3, 2022 at 11:27 AM
Related:
- Excel change font color based on value of another cell
- How to change date format in excel - Guide
- Conditional formatting: change fontcolor based on another cell ✓ - Excel Forum
- Excel conditional formatting if another cell contains specific text ✓ - Excel Forum
- Transfer data from one excel worksheet to another automatically - Guide
- Excel if cell color is red then - Guide
1 reply
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
January 16, 2023
545
Mar 3, 2022 at 11:27 AM
Mar 3, 2022 at 11:27 AM
Hi Randal,
Here you go:
Best regards,
Trowa
Here you go:
Sub RunMe() For Each cell In Range("E2:E" & Range("E" & Rows.Count).End(xlUp).Row) If cell.Value = "Traffic" Then Cells(cell.Row, "H").Interior.ColorIndex = 1 Next cell End Sub
Best regards,
Trowa