LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programmatically Format Comments

Use the characters method.

Sub modify()
Dim cmt As Comment
Set cmt = ActiveCell.Comment
With cmt.Shape
With .TextFrame.Characters(7, 8)
.Font.Size = 16
.Font.ColorIndex = 3
.Font.Name = "Times New Roman"
End With
End With
End Sub

as an example

--
Regards,
Tom Ogilvy

"hglamy" wrote in message
...
Hello there,

how can I format different aspects of a comment
such as font color etc. by way of vba ?

Help is greatly appreciated.

Thank you in advance.

Kind regards,

H.G. Lamy




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
Comments Format Help David Excel Worksheet Functions 0 January 16th 07 12:14 PM
Pivot table: how to programmatically format headers? Dave O Excel Discussion (Misc queries) 3 October 9th 06 03:19 PM
Programmatically Format Comments hglamy[_2_] Excel Programming 2 November 19th 03 06:29 PM
Date format when opening a .CSV file programmatically jason Excel Programming 3 November 10th 03 09:09 AM


All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"