View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ryguy7272 ryguy7272 is offline
external usenet poster
 
Posts: 2,836
Default Excel user defined functioned

Not sure if this is what you are after, but it may get you closer...

Rng.Font.ColorIndex = 3

See this site for a list of colors:
http://www.mvps.org/dmcritchie/excel/colors.htm


Regards,
Ryan--

--
RyGuy


"Billy Liddel" wrote:

You can't format the result of a UDF only in a macro. Could you not use
Conditional Formatting based on the result of the UDF?

Peter

" wrote:

I am trying to format a cell through user defined function. Code is
like.

ActiveCell.Font.Color = Red

but it is not working.
Is there any way to format a cell ( color, bold etc..)?

thanks