#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Colours

Hi guys,

i also meant to ask if there is any easy way to get rows to colour code
based on date.

i.e. if date is older than 7 days colour Red, if date is older than 7 and
less than 15 colour Blue, if older than 15 colour Yellow.

I had a look on Google but couldn't find an easy wasy to do it.

Regards

Scott


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Colours

I have just started to look at conditional Formatting and am curious if this
is the right approach if so, is it possible to link it with my original
macro or does it need to be seperate?

Scott

"Scott" wrote in message
...
Hi guys,

i also meant to ask if there is any easy way to get rows to colour code
based on date.

i.e. if date is older than 7 days colour Red, if date is older than 7 and
less than 15 colour Blue, if older than 15 colour Yellow.

I had a look on Google but couldn't find an easy wasy to do it.

Regards

Scott




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Colours

Scott,

Conditional Formatting is indeed the way. It is independent of the macro,
being a worksheet facility, and can exist without any macros.

When you setup the CF, select all cells you want coloured.
In CF, for Condition1, select FormulaIs
Use a formula of =$A1TODAY()-15, select format and pick Yellowfrom the
Pattern tab
Add another condition, formulaIs, formula of
=AND($A1TODAY()-15,$A1<=TODAY()-7), colour blue
Add another condition, formulaIs, formula of =$A1TODAY()-7, colour red

Copy to other rows

--
HTH

-------

Bob Phillips
... looking out across Poole Harbour to the Purbecks


"Scott" wrote in message
...
I have just started to look at conditional Formatting and am curious if

this
is the right approach if so, is it possible to link it with my original
macro or does it need to be seperate?

Scott

"Scott" wrote in message
...
Hi guys,

i also meant to ask if there is any easy way to get rows to colour code
based on date.

i.e. if date is older than 7 days colour Red, if date is older than 7

and
less than 15 colour Blue, if older than 15 colour Yellow.

I had a look on Google but couldn't find an easy wasy to do it.

Regards

Scott






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I customise colours used in charts and keep those colours. LJ Charts and Charting in Excel 3 May 20th 10 01:50 PM
How to save one of the MORE COLOURS in the THEME COLOURS? Wulfy Excel Discussion (Misc queries) 0 August 18th 09 10:25 AM
Colours debbym Excel Discussion (Misc queries) 2 March 28th 07 11:12 PM
Colours Yottie Excel Discussion (Misc queries) 2 March 18th 07 09:29 PM
Excel 2003 font colours and cell colours bretta Excel Discussion (Misc queries) 1 April 17th 05 03:45 AM


All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"