ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comments (https://www.excelbanter.com/excel-programming/289979-comments.html)

Steven K

Comments
 
Hello,

Is there a way to step through all the comments in xls file and then
autoformat them?

--
Thanks in advance,

Steven



quartz

Comments
 
Steven,

The following function will auto-size all comments in the active sheet.
Perhaps you could adapt it to suit your needs. HTH


Function CommentsAutoSizeAll()

Dim cmt As Comment
Dim cmts As Comments
Set cmts = ActiveSheet.Comments
For Each cmt In cmts
cmt.Shape.TextFrame.AutoSize = True
Next

End Function



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

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