![](/img/trans.png)
[英]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.