Conditional Formatting in a Macro

ponderance

New Member
Joined
May 17, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello, all!

I used to have individual macros that would automatically color row background based on a cell value. It got lost a couple years ago, and I haven't been able to figure out how I did it.

These are the conditional formatting formulas I'm using. and the color it made the row background.

=$1:$65536 (I had this saved to select whole document, because lazy)

=$G1>”H*" - light red

=$N1>"PS*" - light green

=$N1>"CS*" - light green

=$AC2<1 - light grey


I've been messing with this off and on, and if I could get it working again it would save me many hours a month.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Still looking for a solution to this. Seems like it should be so easy, but my brain is just mush.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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