Macro to colour cells

mad4darts

New Member
Joined
May 11, 2011
Messages
4
Hi Im new here, so please be gentle!!

I have a spreadsheet that has various text in a column, eg:

OK
Yard
MTS
etc
etc

To colour each of these I know I can use conditional formatting, which is fine, but there's more than 3 I want coloured.

Can I do this using macro recorder, or do I have to use VBA? I'm not familiar with either.

There Excel version I have is 2000.

thanks in advance for any help :)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You can jsut use conditional formatting by using the concept of "OR" operation

For example, in conditional formatting
= "OK" OR "Yard" OR "MTS"
 
Upvote 0
Could you elaborate more on in which columns you are checking the values.
and what values you are checking for?
 
Upvote 0
I have the following descriptions:

OK
YARD
MTS
GOVAN
NOT AVAIL

in column C. What I want is, if the description is OK, colour it green. If the description is MTS, colour it Red etc.

Not sure if it can be done without VBA though?
 
Upvote 0
Yes it can.
You just have to make 2 rules in conditional formatting.

1) Select Column C
2) Conditional Formatting
3) Custom Formula (New Rule)
4) = "OK"
5) Colour Fill -> Green
6) Custom Formula (New Rule)
7) = "MTS"
8) Colour Fill -> Red
 
Upvote 0
that's fine and I understand that, but what I'm saying is....I have more than 3 descriptions I want to colour, so CF is no use to me!
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,822
Members
452,946
Latest member
JoseDavid

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