简体   繁体   English

如何将带注释的文本字体颜色更改为红色?

[英]How to change annotated text font color to red?

I have this existing Excel-based check list (that's black font color); 我有这个基于Excel的现有检查表(黑色字体); where I need to add text comments in red font color. 我需要在此处添加红色字体的文本注释。 What's the easiest way possible to keep everything I type on the Excel document in red color? 将我在Excel文档中键入的所有内容保持为红色的最简单方法是什么?

It is easier to re-paint all Comments in red once they have been entered: 输入所有注释后 ,将其重新绘制为红色更容易:

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.

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