Thanks MD and Paul.

To conclude that, for any self-defined function, we can only return the value (i.e. text and number) rather than any other property (e.g. change font color, bold function...). Is it correct?

If we really want to achieve the above purpose, we can only to write the Sub Marco to instead of the function. Please confirm my understanding.

Thanks All
Ann