Henjo van Rees
Posts: 46
Joined: 2018-12-10
|
I add a cell comment to the cell containing the function (UDF).
This comment is just plain text, no formatting:
Range callingCell = ....;
callingCell.AddComment(text);
callingCell.Comment.Shape.Height = 50;
callingCell.Comment.Shape.Width = 200;
I just noticed that these comments are bold now, without having changed any of the related code.
How can I set the font or text styling for the comment?
I can't find the correct property, only WordArt related properties |
|
Henjo van Rees
Posts: 46
Joined: 2018-12-10
|
Ok, found that I can set the font per character like this:
callingCell.Comment.Shape.TextFrame.Characters(0, message.Length).Font.Bold = false;
Is it possible to set the default font formatting in advance, before the text? |
|
Andrei Smolin
Add-in Express team
Posts: 18830
Joined: 2006-05-11
|
|