简体   繁体   中英

excel can VBA UDF output formatted text?

Is there a way to return a string from an UDF formatted? For example I would like first two words to be bold, the rest not.

Functions are not allowed to alter the formatting of the worksheet. That being said, Sub() can and you can easily write a Sub routine that does this - it just means you'll have to run the macro (like using F8) instead of entering it as a formula inside a cell.

抱歉,您无法将富文本格式应用于公式的结果。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM