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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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