Global formatting of cell comments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone know how to change the font and/or size of all comments in a worksheet
or workbook at one go?

Many thanks

Seamus McMillan
 
The following code will change all comments to Times New Roman, font
size 12:

'======================
Sub FormatAllComments()
Dim ws As Worksheet
Dim cmt As Comment
For Each ws In ActiveWorkbook.Worksheets
For Each cmt In ws.Comments
With cmt.Shape.TextFrame.Characters.Font
.Name = "Times New Roman"
.Size = 12
End With
Next cmt
Next ws
End Sub
'========================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top