Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Font Color Index / Name Source

I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?

Thanks.
--
Neal Z
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Font Color Index / Name Source

Hi Neil,

See:

http://tinyurl.com/lm8ns


---
Regards,
Norman


"Neal Zimm" wrote in message
...
I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?

Thanks.
--
Neal Z



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Font Color Index / Name Source

No, it is not readily accessible. I suggested this once before, not
infallible but it works (sort of).

CommandBars("Formatting").Controls("&Fill Color").TooltipText

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Neal Zimm" wrote in message
...
I have a need to display font color names by feeding the color index

number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?

Thanks.
--
Neal Z



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Font Color Index / Name Source

I've just written an Excel add-in (Determine Colors) that creates a new
menu on the cell right-click popup menu. It lists cell color, font color and
cell address. I am looking for feedback and trying to determine if there
is any demand for it. I anticipate it would be a giveaway program.
Email me if you want to give it a try...
XX
(remove xxx)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Neal Zimm"
wrote in message
I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?
Thanks.
Neal Z
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Font Color Index / Name Source

Thanks, their solutions are pretty close to mine. I built a string array
indexed by the colorindex number to return a string containing the name. I
filled in the "missing" numbers with a dummy color name called "Invalid".


to get the names i just recorded a macro click on each one of the colors in
the font palette.

good enough for me.

--
Neal Z


"Norman Jones" wrote:

Hi Neil,

See:

http://tinyurl.com/lm8ns


---
Regards,
Norman


"Neal Zimm" wrote in message
...
I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?

Thanks.
--
Neal Z






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Font Color Index / Name Source

Thanks, but I built an array that works well enough for me.
--
Neal Z


"Bob Phillips" wrote:

No, it is not readily accessible. I suggested this once before, not
infallible but it works (sort of).

CommandBars("Formatting").Controls("&Fill Color").TooltipText

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Neal Zimm" wrote in message
...
I have a need to display font color names by feeding the color index

number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?

Thanks.
--
Neal Z




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Font Color Index / Name Source

Hi Jim-
Thanks for the offer. I may try it out in a couple of weeks. For my needs
now, it would be overkill. I just built a string array indexed by the
font.colorindex number and it works well enough for me.
--
Neal Z


"Jim Cone" wrote:

I've just written an Excel add-in (Determine Colors) that creates a new
menu on the cell right-click popup menu. It lists cell color, font color and
cell address. I am looking for feedback and trying to determine if there
is any demand for it. I anticipate it would be a giveaway program.
Email me if you want to give it a try...
XX
(remove xxx)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Neal Zimm"
wrote in message
I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?
Thanks.
Neal Z

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Font Color Index / Name Source

You might want to customize some workbook colors and also change
the font in a cell so that the text uses two or more colors; then test
your code.
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html


"Neal Zimm"
wrote in message
Hi Jim-
Thanks for the offer. I may try it out in a couple of weeks. For my needs
now, it would be overkill. I just built a string array indexed by the
font.colorindex number and it works well enough for me.
--
Neal Z


"Jim Cone" wrote:

I've just written an Excel add-in (Determine Colors) that creates a new
menu on the cell right-click popup menu. It lists cell color, font color and
cell address. I am looking for feedback and trying to determine if there
is any demand for it. I anticipate it would be a giveaway program.
Email me if you want to give it a try...
XX
(remove xxx)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Neal Zimm"
wrote in message
I have a need to display font color names by feeding the color index number
to "something". When I hold the mouse on a color in the palette the name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?
Thanks.
Neal Z

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Font Color Index / Name Source

Just to add, Jim's suggestion is worth following up should your function
need to work with a non default palette, as the method you described will
return wrong colours. Try swapping red and yellow and test.

With ActiveWorkbook
.Colors(3) = vbYellow
.Colors(6) = vbRed
End With

Regards,
Peter T

"Jim Cone" wrote in message
...
You might want to customize some workbook colors and also change
the font in a cell so that the text uses two or more colors; then test
your code.
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html


"Neal Zimm"
wrote in message
Hi Jim-
Thanks for the offer. I may try it out in a couple of weeks. For my

needs
now, it would be overkill. I just built a string array indexed by the
font.colorindex number and it works well enough for me.
--
Neal Z


"Jim Cone" wrote:

I've just written an Excel add-in (Determine Colors) that creates a new
menu on the cell right-click popup menu. It lists cell color, font

color and
cell address. I am looking for feedback and trying to determine if

there
is any demand for it. I anticipate it would be a giveaway program.
Email me if you want to give it a try...
XX
(remove xxx)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Neal Zimm"
wrote in message
I have a need to display font color names by feeding the color index

number
to "something". When I hold the mouse on a color in the palette the

name
displays. Is there a source accessable by VBA or do I have to build a
procedure or function on my own?
Thanks.
Neal Z



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
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
Conditional Format for font color using font color Jim Excel Worksheet Functions 2 August 29th 09 11:54 AM
Changing Font color based on font type or size John Excel Discussion (Misc queries) 2 February 7th 08 12:50 AM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
My fill color and font color do not work in Excel Std Edition 2003 chapstick Excel Discussion (Misc queries) 1 September 11th 05 08:48 PM


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