Comment Boxes

S

Steved

Hello from Steved

I have over 360 comment boxes in Excel.

Question please.

Is there away to have all the comment boxes the same size.

Thankyou.
 
R

Rob van Gelder

Some code is necessary:

Hit ALT+F11 to open Visual Basic Editor
Insert a Module
Paste this code.
Put your cursor in the code and hit F5.

Sub test()
Dim rng As Range

For Each rng In Cells.SpecialCells(xlCellTypeComments)
With rng.Comment.Shape
.Width = 200
.Height = 200
End With
Next
End Sub
 
S

Steved

Thankyou

-----Original Message-----
Some code is necessary:

Hit ALT+F11 to open Visual Basic Editor
Insert a Module
Paste this code.
Put your cursor in the code and hit F5.

Sub test()
Dim rng As Range

For Each rng In Cells.SpecialCells(xlCellTypeComments)
With rng.Comment.Shape
.Width = 200
.Height = 200
End With
Next
End Sub


--
Rob van Gelder - http://www.vangelder.co.nz/excel





.
 

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

Top