Comments box resize to a line

icecurtain

Board Regular
Joined
Jun 24, 2010
Messages
66
All the comments boxes have resized to a line with an arrow pointing to the cell how to I get the comment boxes to resize so the text is visable again.

I think this was due to a column resizing error.

I am using excel 2003
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Ok now I have resized the boxes using this below.
But the boxes are all over the place with arrows all over the screen and spreadsheet
how do I get them to go to the right of the active cell .


Sub Comments_AutoSize() Dim MyComments As Comme.nt Dim lArea As Long For Each MyComments In ActiveSheet.Comments With MyComments .Shape.TextFrame.AutoSize = True If .Shape.Width > 300 Then lArea = .Shape.Width * .Shape.Height .Shape.Width = 200 ' An adjustment factor of 1.1 seems to work ok. .Shape.Height = (lArea / 200) * 1.1 End If End With Next ' comment End Sub
 
Last edited:
Upvote 0
Found this thanks AAE

Sub AlignComments()

Dim c As Range, r As Range

Set r = Range("A1:KK100") 'adjust range reference as needed

Application.ScreenUpdating = False

On Error Resume Next

For Each c In r
If Not c.Comment.Text = "" Then
c.Comment.Shape.Left = c.Offset(0, 1).Left
c.Comment.Shape.Top = c.Offset(1, 1).Top
End If
Next c

Application.ScreenUpdating = True

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top