CF, macro require

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000
Hi,

VBA, conditional formatting macro in the columns C, D & E as shown colours for pattern in the C1:E4 and in the columns G, H & I as shown colours for pattern in the G3:I3

Example data


Book1
ABCDEFGHIJK
11|11|XX|X1|1X|12|1
21|2X|21|XX|X2|X
3X|12|X1|2X|22|2
42|12|2
5P1P2P3P1P2P3
6X|11|12|1X|11|12|1
7X|X2|1X|XX|X2|1X|X
8X|11|12|1X|11|12|1
92|11|X2|12|11|X2|1
101|X1|X1|11|X1|X1|1
11X|2X|X2|XX|2X|X2|X
12X|11|21|1X|11|21|1
131|XX|21|X1|XX|21|X
141|11|2X|X1|11|2X|X
151|XX|11|11|XX|11|1
16X|1X|21|2X|1X|21|2
171|1X|12|11|1X|12|1
181|11|11|X1|11|11|X
19X|11|XX|1X|11|XX|1
201|11|12|11|11|12|1
211|11|22|11|11|22|1
222|1X|11|X2|1X|11|X
231|11|11|21|11|11|2
24X|11|21|1X|11|21|1
251|11|1X|11|11|1X|1
26X|11|11|2X|11|11|2
271|2X|XX|X1|2X|XX|X
281|11|21|21|11|21|2
291|11|22|11|11|22|1
301|11|X1|11|11|X1|1
311|11|X1|11|11|X1|1
321|X1|12|11|X1|12|1
332|21|1X|12|21|1X|1
341|X1|21|11|X1|21|1
352|11|12|X2|11|12|X
361|XX|21|11|XX|21|1
37X|11|11|1X|11|11|1
38X|21|1X|XX|21|1X|X
39X|12|12|1X|12|12|1
401|11|XX|11|11|XX|1
412|X1|11|12|X1|11|1
42X|2X|11|1X|2X|11|1
43
44
45
46
Sheet1


Thank you in advance

Regards,
Kishan
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi Rick, it is exactly the same as a post#9</SPAN></SPAN>

Regards,
</SPAN></SPAN>
Kishan
</SPAN></SPAN>
Okay, then I do not have a more compact nor faster macro that I can offer you... use the one KolGuyXcel gave you which you modified and says works for you. We need to convince you to move up to a newer version of Excel... there is so much extra functionality and minimal limitations available in XL2010 and later.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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