Q: automaticly changing colours from a cel by visual basic

M

Marco Polo

Hello, I have an worksheet where I want to change the colour by de value of
the number wich is in the cel.
Example, when a cel contains the number 1-5 the cel must be the colour red
but when it contains the numbers 6->5 (5-10) the cel must be having the
colour blue.

I wonder if i can be done by visual basic or in Excel itself.
Thanks in advance,

Remo
 
S

Sysyphus

Marco Polo said:
Hello, I have an worksheet where I want to change the colour by de value
of
the number wich is in the cel.
Example, when a cel contains the number 1-5 the cel must be the colour red
but when it contains the numbers 6->5 (5-10) the cel must be having the
colour blue.

I wonder if i can be done by visual basic or in Excel itself.
Thanks in advance,

You need 'Conditional Formatting'.

see: http://www.cpearson.com/excel/cformatting.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top