VBA formatting

V

Vesa

I would like to create a simple custom function that
would return the value from a specific cell and change
the color to red, i.e. if there is a number 5 in cell A1,
I could type in any cell:

=COLORNUMBER(A1)

and then the result would be red 5.

I can do:

Function Colornumber(xxxx)
Colornumber = xxxx
End Function

However, how can I add the changing to red part to the
formula?

Help would be much appreciated.
 
D

David McRitchie

please post you question only once to a single newsgroup.
There is no need to repost to change the title, you have answers
in your other posting in this newsgroup.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top