Code: Select all
Sub ReSizeComments()
Dim intC As Integer
For intC = 1 To ActiveSheet.Comments.Count
With ActiveSheet.Comments(intC).Shape
.Height = 60
.Width = 96
End With
Next intC
End Sub
Code: Select all
Sub ReSizeComments()
Dim intC As Integer
For intC = 1 To ActiveSheet.Comments.Count
With ActiveSheet.Comments(intC).Shape
.Height = 60
.Width = 96
End With
Next intC
End Sub
Code: Select all
.Textframe.Autosize = True
I would think it could do it just like a cell with wordwrap enabled does it... autosize the height while retaining the existing (or possibly a specifically specified) width.rory wrote:How would it autosize otherwise? :)
It could, but unfortunately it does not. Like Text boxes it only has autofit, not autofit ht given width or autofit width given ht. As far as I can see, that functionality would have to be user-created and (as you probably can imagine) it is not a trivial task...I would think it could do it just like a cell with wordwrap enabled does it... autosize the height while retaining the existing (or possibly a specifically specified) width.