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 December 27, 2022 - Mar 3, 2022 at 11:27 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Mar 3, 2022 at 11:27 AM
Related:
- Excel change text color based on value
- Spell number in excel without macro - Guide
- Macro excel download - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
- Run macro when cell value changes by formula ✓ - Excel Forum
- Macro to insert row in excel based on criteria ✓ - Excel Forum
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
552
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