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

I have a userform which has a number of textboxes. They are titled "Start
Date" and "Expiry Date".
How do I get the expiry date to change colour when 30 days before expiry
date the font changes to orange and when past the expiry date it changes to
red.
Is there a vb code to do that and if so where do I place it?
--
Pilot
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default textbox font colour

Pilot wrote:
I have a userform which has a number of textboxes. They are titled "Start
Date" and "Expiry Date".
How do I get the expiry date to change colour when 30 days before expiry
date the font changes to orange and when past the expiry date it changes to
red.
Is there a vb code to do that and if so where do I place it?


Conditional formatting is what I use. I would add a field that would
give me the number of days and then ket the conditional formatting
depend on these.

I actualy have an additional field where it not only changes colour, but
also tells me the status. This gives me the ability to use autofilter to
filter on it.

houghi
--
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default textbox font colour

If I conditional format the cells will the textbox 9which are linked to
cells) also change colour? or do I need to add a code so that the values in
the textbox will change colour?
--
Pilot


"houghi" wrote:

Pilot wrote:
I have a userform which has a number of textboxes. They are titled "Start
Date" and "Expiry Date".
How do I get the expiry date to change colour when 30 days before expiry
date the font changes to orange and when past the expiry date it changes to
red.
Is there a vb code to do that and if so where do I place it?


Conditional formatting is what I use. I would add a field that would
give me the number of days and then ket the conditional formatting
depend on these.

I actualy have an additional field where it not only changes colour, but
also tells me the status. This gives me the ability to use autofilter to
filter on it.

houghi
--
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988

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
Change colour of font in a textbox? capt Excel Discussion (Misc queries) 2 January 24th 08 04:51 PM
Font colour numbers JC Excel Discussion (Misc queries) 2 October 7th 06 01:14 PM
textbox font size AskExcel Excel Worksheet Functions 3 September 16th 06 05:24 AM
Font colour phil2006 Excel Discussion (Misc queries) 1 July 31st 06 02:15 PM
can the fill colour of a bar be tied to the data font colour data PaulC Charts and Charting in Excel 0 June 23rd 06 01:21 AM


All times are GMT +1. The time now is 01:45 PM.

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"