Conditional Color Formatting Across work sheets in same workbook

Smilin

Board Regular
Joined
Nov 28, 2019
Messages
67
Platform
  1. Windows
I have a VBA which pastes data into 4 different worksheets. Different data each time the VBA is used. Once pasted, an initial is inputted beside each line and the line is highlighted with certain color as determined by the conditional formatting.(=$AH1="KM") (=$1:$1048576) Ie. SM is purple, KM is pink etc. There are 15 initials matching with 15 different colors. The conditional formula for each sheet is the same, but I cannot copy each sheet 4 times as they are different and my VBA would corrupt. The difficult way would be type in the conditional formula in each work sheet 3x15 and try to match the same color for each initial. Matching the color is what is difficult, so that is why I am reaching out for help. Can anyone help me please?

Thank you :) Smilin
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,224,609
Messages
6,179,881
Members
452,948
Latest member
Dupuhini

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