[英]How can I change the font color to all the text boxes with the same object name in an entire workbook to red?
[英]How to change annotated text font color to red?
我有这个基于Excel的现有检查表(黑色字体); 我需要在此处添加红色字体的文本注释。 将我在Excel文档中键入的所有内容保持为红色的最简单方法是什么?
输入所有注释后 ,将其重新绘制为红色更容易:
Sub BetterRedThan()
Dim cmt As Comment
If ActiveSheet.Comments.Count = 0 Then
Range("A1").AddComment
End If
For Each cmt In ActiveSheet.Comments
cmt.Shape.TextFrame.Characters.Font.ColorIndex = 3
Next cmt
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.