I have a VBA script that appends text to any cell's comment, however it removes all comment formatting.
My current code is as simple as
c.Comment.text "something to append" & " " & c.Comment.text
Is it possible to do this job, but without losing all comment's formatting.
As documented, the Text
method has three parameters .
Use all three to keep existing text:
c.Comment.Text "something to append ", 1, False
使用Characters函数时要非常小心,因为Excel中存在一些古老的错误,而且我发现如果与大型工作簿一起使用,这可能会导致不稳定和无法复制的崩溃。
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.