#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Change font colour

I have a speadsheet containing a column of dates which related to a
second column in which there is a formula working out an expiry date.
I havent used VBA before and was hoping someone could help me write a
macro that changes the column with the expiry dates to RED if the date
is TODAY or after.
Any assistance appraciated!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Change font colour

Take a look Conditional Formatting in Help menu

" wrote:

I have a speadsheet containing a column of dates which related to a
second column in which there is a formula working out an expiry date.
I havent used VBA before and was hoping someone could help me write a
macro that changes the column with the expiry dates to RED if the date
is TODAY or after.
Any assistance appraciated!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default Change font colour

VBA not needed!! Here's a short demo

A1 = 10/15/2006 (a true date, not text)
B1 = 60
C1 = =A1+B1 (which displays 12/14/2006)

With C1 the current cell, Click (on the menu) Format,
Conditional Formatting, Select CellValueIs, then select
Less than or equal to, then in empty box type in: =today()
Then Click the Format button, Pattern, your color, and OK OUT..

C1 should be in the color you selected

Now change Cell B1 to 75

C1 should be Clear (No Color).

Does that help?



" wrote in message
ups.com:

I have a speadsheet containing a column of dates which related to a
second column in which there is a formula working out an expiry date.
I havent used VBA before and was hoping someone could help me write a
macro that changes the column with the expiry dates to RED if the date
is TODAY or after.
Any assistance appraciated!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Change font colour

That worked a treat....thanks for your prompt reply :-)


JMay wrote:

VBA not needed!! Here's a short demo

A1 = 10/15/2006 (a true date, not text)
B1 = 60
C1 = =A1+B1 (which displays 12/14/2006)

With C1 the current cell, Click (on the menu) Format,
Conditional Formatting, Select CellValueIs, then select
Less than or equal to, then in empty box type in: =today()
Then Click the Format button, Pattern, your color, and OK OUT..

C1 should be in the color you selected

Now change Cell B1 to 75

C1 should be Clear (No Color).

Does that help?



" wrote in message
ups.com:

I have a speadsheet containing a column of dates which related to a
second column in which there is a formula working out an expiry date.
I havent used VBA before and was hoping someone could help me write a
macro that changes the column with the expiry dates to RED if the date
is TODAY or after.
Any assistance appraciated!


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
not able to see font color change. luv4bball Excel Discussion (Misc queries) 1 October 30th 06 05:03 PM
Change font colour for whole row Saleee Excel Worksheet Functions 2 October 10th 06 07:41 PM
Change Font Colour and Background If Q [email protected] Excel Worksheet Functions 11 September 27th 06 06:59 PM
font colour change within a IF formula - Help!! Andyp Excel Worksheet Functions 2 August 25th 05 02:17 PM
How do I get the font color to change automatically depending on gtcarlsbad Excel Discussion (Misc queries) 2 February 1st 05 03:39 AM


All times are GMT +1. The time now is 05:45 AM.

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

About Us

"It's about Microsoft Excel"