Sub Comments_All_PropertiesB()
' Created 2/11/2017, adapted from Comments_All_PropertiesA _
5/28/2012, JohnS
' For all existing cell comments on a wksht, applies automatic size, _
"Move and Size Comment with Cell", moves any wandering comments _
back close to parent cell, and font to Calibri 8 Regular (not Bold)
' NOTE: Proc could fail if a cell's comment is hidden (not visble)
For Each c In ActiveSheet.UsedRange.Cells.SpecialCells( _
xlCellTypeComments).Cells
' The next 2 statements are for procedure-debugging only:
MsgBox "There are " & CStr(ActiveSheet.UsedRange.Cells. _
SpecialCells(xlCellTypeComments).Count) & " cells " & _
"currently selected by the Procedure.", vbInformation _
+ vbOKOnly
c.Select ' for use during debugging only
With c.Comment.Shape
With .TextFrame.Characters(1).Font
.Bold = False
.FontStyle = "Calibri"
.Size = 8
End With
.TextFrame.AutoSize = True
.Placement = xlMoveAndSize
.Left = c.Offset(0, 1).Left
.Top = c.Offset(-1, 1).Top
End With
Next c
MsgBox "Procedure completed."
End Sub
[code]