BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Change Text color in one cell based on another

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon May 15, 2006 2:15 pm    Post subject: Change Text color in one cell based on another Reply with quote



This group has been so helpful to me in enhancing my spreadsheets and
my knowledge. I'm now on to enchancing my sheet even more.

I would like to do a VB code to change colors of text in one cell,
based on text in another - for entire column(s) and for 2/4 different
columns (I have my sheet set up in columns):

If G1 has "A", then change text in C1 to Red
If G1 has "B", then change text in C1 to Blue
If G1 has "C" then change text in C1 to Green --- etc.

ALSO applies to

If N1 has "A", then change text in I1 to Red
If N1 has "B", then change text in I1 to Blue
If N1 has "C" then change text in I1 to Green --- etc.

This would be for the entire columns of C to change text in rows
relating to text in same row in column G (the criteria above) and I
column to change text in rows relating to text in the same row in
column N.

As always, any help you can give me would be appreciated.
Back to top
Riki Wiki
Guest





PostPosted: Sat May 20, 2006 4:18 am    Post subject: Re: Change Text color in one cell based on another Reply with quote



On 15 May 2006 07:00:04 -0700, tdemartino (AT) qosina (DOT) com wrote:

Quote:
This group has been so helpful to me in enhancing my spreadsheets and
my knowledge. I'm now on to enchancing my sheet even more.

I find it hard to believe that. This news group do not officially exist so
here you can only get info about where to repost your question.

Quote:
I would like to do a VB code to change colors of text in one cell,

Is this a Delphi question? If so, repost your question in
b.p.d.vcl.components.using.win32, and you need to post to the Borland news
groups server.

How to post to Delphi newsgroups:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.