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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Insert text depending on font colour



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 04:32 AM posted to microsoft.public.excel.misc
tricia
external usenet poster
 
Posts: 90
Default Insert text depending on font colour

I have a list and was wondering how to do this:

I want to insert a certain word at the beginning of the paragraph in each
cell that has red font. A different word for blue font, yellow font etc. If
the font colour thing is no good, I could make the cell background different
colours.


  #2  
Old May 15th, 2009, 08:07 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default Insert text depending on font colour

You can't do this with a formula. It would have to be VBA.
http://xldynamic.com/source/xld.ColourCounter.html
http://www.cpearson.com/excel/colors.aspx
--
David Biddulph

Tricia wrote:
I have a list and was wondering how to do this:

I want to insert a certain word at the beginning of the paragraph in
each cell that has red font. A different word for blue font, yellow
font etc. If the font colour thing is no good, I could make the cell
background different colours.

D



  #3  
Old May 15th, 2009, 08:15 PM posted to microsoft.public.excel.misc
JB
external usenet poster
 
Posts: 115
Default Insert text depending on font colour

With UDF

http://cjoint.com/?fpvoz8csOq

Function couleurFondTexte()
Application.Volatile
Select Case Range(Application.Caller.Address).Interior.ColorIn dex
Case 3
couleurFondTexte = "Red"
Case 4
couleurFondTexte = "Green"
Case 6
couleurFondTexte = "Yellow"
Case Else
couleurFondTexte = "???"
End Select
End Function

JB
http://boisgontierjacques.free.fr



On 15 mai, 05:32, Tricia wrote:
I have a list and was wondering how to do this:

I want to insert a certain word at the beginning of the paragraph in each
cell that has red font. *A different word for blue font, yellow font etc. *If
the font colour thing is no good, I could make the cell background different
colours.



 




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 08:07 AM.


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