Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing font colour for cell variables

I want to be able to change the font colour in a cell depending upon it's
value in the cell - eg over/under 1000. Presumably the 'IF' function is the
way to go but what do I need to do to get it to change the font colour. Can
anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Changing font colour for cell variables

Try conditional formatting !!!!

--
--
Met vriendelijk groet;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Nederland
--
E:
W:
www.spreadsheetsolutions.nl
--
"Sea Urchin" wrote in message
...
I want to be able to change the font colour in a cell depending upon it's
value in the cell - eg over/under 1000. Presumably the 'IF' function is
the
way to go but what do I need to do to get it to change the font colour.
Can
anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Changing font colour for cell variables

Hi

Look at Conditional Formatting on the Format menu.

Hopes this helps.

---
Per

"Sea Urchin" skrev i meddelelsen
...
I want to be able to change the font colour in a cell depending upon it's
value in the cell - eg over/under 1000. Presumably the 'IF' function is
the
way to go but what do I need to do to get it to change the font colour.
Can
anyone help?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Changing font colour for cell variables

If you want to include it in your VBA code, you're right, you would use the
If statement:

If ActiveCell 1000 Then
Activecell.Font.ColorIndex = 3
Else
Activecell.Font.ColorIndex = 5
End If

Depending on the colours you want, you will either need to use trial and
error (by picking a number and then stepping through the code to see what the
result is), looking up the help or recording a macro and selecting the colour
that you want. Then you can look through what you recorded and get the
colour index.

Hope this helps.



"Spreadsheet Solutions" wrote:

Try conditional formatting !!!!

--
--
Met vriendelijk groet;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Nederland
--
E:
W:
www.spreadsheetsolutions.nl
--
"Sea Urchin" wrote in message
...
I want to be able to change the font colour in a cell depending upon it's
value in the cell - eg over/under 1000. Presumably the 'IF' function is
the
way to go but what do I need to do to get it to change the font colour.
Can
anyone help?



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
Changing font colour to red & orange DDD Excel Discussion (Misc queries) 1 February 1st 09 11:58 AM
Changing font colour depending on cell value RunRonnyRun Excel Worksheet Functions 1 October 27th 08 08:28 PM
changing font colour Jock Excel Programming 10 June 18th 07 02:15 PM
Changing font colour in some cells Di W New Users to Excel 4 March 12th 06 05:58 PM
changing font colour of row when cell contains date jason Excel Programming 3 May 8th 04 11:24 PM


All times are GMT +1. The time now is 11:10 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"