Conditional Formatting using VBA?

handysmurf

Board Regular
Joined
Jan 17, 2015
Messages
87
Office Version
  1. 365
Platform
  1. Windows
I have a large spreadsheet with 14 different conditional formatting rules. I'm tired of having to weed them out everytime I blink. If I did it with VBA would it eliminate that problem? If so I would like to do that. I can likely figure out how to set up most if not all of them once I have one.


I'll just list what I have so you can see how complicated, or not, they are. I don't think they are complicated but since I clearly am VBA clueless how would I know.

=$M3="p" Applies To =$A$3:$EZ$30000
=$C3>$C2
Applies To =$A$3:$EZ$30000
=AND($N3<>0,$N3<>"",$M3<>"co",$M3<>"p",$M3<>"f",$M3<>"m",$M3<>"sf",$M3<>"cp",$M3<>"of",$M3<>"o",$M3<>"upd",$M3<>"ypd")
Applies To =$A$3:$EZ$30000
=AND(OR($M3="f",$M3="m"),OR(ISBLANK($O3),ISBLANK($AP3)))
Applies To =$A$3:$EZ$30000
=$M3="D"
Applies To =$A$3:$EZ$30000
=AND(OR($A3<>0,$B3<>0),$L3="D")
Applies To =$A$3:$EZ$30000
=OR(ISBLANK($L3),$L3="D",$L3="u",$L3="y",$L3="M",$L3="WE",$M3="f",$M3="m",$M3="sf",$M3="of")
Applies To =$A$3:$EZ$30000
=AND($L3="u",$O3>0,ISBLANK($AP3),$CL3=0,$CL3<>"")
Applies To =$A$3:$EZ$30000
=AND($L3="y",$O3>0,ISBLANK($AP3),$DK3=0,$DK3<>"")
Applies To =$A$3:$EZ$30000
=OR(AG3<0,AND(AG3>$AG$1,AG3<>""))
Applies To =$AG$3,$AL$30026
=$AB3-$AB2>50000
Applies To =$Ab$3:$AB$30000
=OR($L3="y",$M3="ypd",AND($M3="co",$M2="ypd"))=OR($L3="u",$M3="upd",AND($M3="co",$M2="upd"))
Applies To =$A$3:$EZ$30000
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,534
Messages
6,120,080
Members
448,943
Latest member
sharmarick

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