Mar 26 2024 08:25 AM
I have a large spreadsheet with hundreds of comments (now called Notes) created in an old version of Excel. I am updating this spreadsheet using Excel 365. All the old notes used Tahoma 9 point font. Everything I type in when updating is in MS Sans Serif 10 point font. This looks a mess and changing either the new or the old text to match the other font is a massive job. It appears that I cannot change the default font for new text to match the old font. Has anyone developed a macro that would change all the text in all the notes to the new font?
Mar 26 2024 08:36 AM
@Wrake Sure!
Sub UpdateComments()
Dim cmnt As Comment
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
For Each cmnt In sht.Comments
With cmnt.Shape.TextFrame.Characters.Font
.Name = "MS Sens Serif"
.Size = 10
End With
Next
Next
End Sub
(Update font name and size as needed)
Mar 27 2024 08:26 AM
Mar 27 2024 09:08 AM
Apr 01 2024 06:46 AM