Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Is it possible to BOLD the first line only (in a comment) by code ? ( I can do it manually). I have variables holding the row and column and have confirmed a comment does exist in that cell. Thanks - Kirk |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi Kirk,
try this code Sub BoldFirstLineOfComment() With Range("A1").Comment l = InStr(.Text, Chr(10)) ..Shape.TextFrame.Characters(1, l).Font.Bold = True End With End Sub you can use SpecialCells(xlCellTypeComments), if you want to change all comments in a sheet. stefan On 9 Jun., 07:10, kirkm wrote: Is it possible to BOLD the first line only (in a comment) by code ? ( I can do it manually). I have variables holding the row and column and have confirmed a comment does exist in that cell. Thanks - Kirk |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 9 Jun 2008 02:18:20 -0700 (PDT), stefan onken
wrote: Sub BoldFirstLineOfComment() With Range("A1").Comment l = InStr(.Text, Chr(10)) .Shape.TextFrame.Characters(1, l).Font.Bold = True End With End Sub Many thanks indeed. Works spot on ! Cheers - Kirk PS This thing I'm doing just about makes the tea & toast Now :) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Question regarding comments | Excel Worksheet Functions | |||
Comments question | Excel Worksheet Functions | |||
Question - Excel Comments to Word Footnotes | Excel Discussion (Misc queries) | |||
A Question Regarding Comments | Excel Discussion (Misc queries) | |||
Cell Comments question | Excel Programming |