简体   繁体   中英

How to change annotated text font color to red?

I have this existing Excel-based check list (that's black font color); 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?

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

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