A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

color format



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2004, 05:20 PM
external usenet poster
 
Posts: n/a
Default color format

Why can't I color part of a cell?:

="The month is " & TEXT(TODAY(),"[Red]Mmmm")
  #2  
Old June 18th, 2004, 07:07 PM
Earl Kiosterud
external usenet poster
 
Posts: n/a
Default color format

anon,

When there's a formula in a cell, there seems to be no way to apply color to
part of it. One possibility is to put the date in the cell via a macro:

Range("A1") = "The month is " & MonthName(DatePart("m", Now))
Range("A1").Characters(Start:=14, Length:=8).Font.ColorIndex = 3

This will need to be run when the worksheet opens, and probably also when it
calculates, or other times, in case you're working across midnight and the
month changes while you work.

If you don't want to mess with a macro, you might put "The month is " in a
cell, right-aligned, and =TODAY in the adjoining cell, formatted [Red]mmmm.

If you don't have to have the month in red, you can put =TODAY() in a cell,
and format (Format - Cells - Custom):
"The month is "mmmm

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

wrote in message
...
Why can't I color part of a cell?:

="The month is " & TEXT(TODAY(),"[Red]Mmmm")



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:00 PM.


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