ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Comment Boxes (https://www.excelbanter.com/excel-worksheet-functions/9911-comment-boxes.html)

Steved

Comment Boxes
 
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.



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


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


"Steved" wrote in message
...
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.





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


"Steved" wrote in

message
...
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.




.



All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com