excel - how to change the format for all comments globally

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

excel - how to change the format for all comments globally

Post by diana »

Using Excel 20007

Many comments exist in an excel spreadsheet. A request has been made to change the formatting globally for all comments.
If you like set a "template" for comments.

Ive found code to perform this function and I can do this.

Sub cformat()
Dim cmt As Comment
For Each cmt In ActiveSheet.Comments
cmt.Shape.TextFrame.Characters.Font.Size = 10
cmt.Shape.TextFrame.Characters.Font.Name = Arial
Next cmt
End Sub


However, this is for a user, and users wont know how to set and run code.

Is there a way this can be done using excel front end?

many thanks

diana

User avatar
HansV
Administrator
Posts: 78530
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: excel - how to change the format for all comments global

Post by HansV »

As far as I know, there is no way to select or format all comments at once in the Excel interface.

You could make the macro available to all users through an Excel add-in (.xlam).
Best wishes,
Hans

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

Re: excel - how to change the format for all comments global

Post by diana »

thank you Hans

diana