Indeed if you have mixed formats it could be quite a lot of work to store
and replace them. However merely to make UserName: bold, as per default,
wouldn't take too much.
If you look into that, perhaps change the comments loop to something like
this -
For Each cmt In ws.Comments
strCommentOld = cmt.Text
strCommentNew = Replace(strCommentOld, strOld, strNew)
If strCommentOld <> strCommentNew Then
Set rng = cmt.Parent
cmt.Delete
With rng.AddComment(Text:=strCommentNew)
.Shape.TextFrame.Characters(1, Len(strNew)).Font.Bold = True
End With
End If
Regards,
Peter T
> >http://www.contextures.com/xlcomments03.html#OldName
>
[quoted text clipped - 4 lines]
>
> Cheers - Kirk
kirkm - 14 Mar 2008 02:05 GMT
>Indeed if you have mixed formats it could be quite a lot of work to store
>and replace them. However merely to make UserName: bold, as per default,
[quoted text clipped - 13 lines]
> End With
>End If
I'm still experimenting, thanks for the ideas.
Have found if you add to Private Sub Workbook_Open()
Application.StatusBar = "Micosoft Excel"
... then the old 'Cell xx commented by ' part doesn't appear. Although
would something restore it later on ?
Thanks - Kirk
Peter T - 14 Mar 2008 10:24 GMT
"kirkm" <xx@xx.com> wrote in message
<snip>
> I'm still experimenting, thanks for the ideas.
>
[quoted text clipped - 6 lines]
>
> Thanks - Kirk
If it's only comments on a particular sheet you don't want indicated in the
status bar, try the following in the worksheet module (rt-click sheet tab -
view code)
Private Sub Worksheet_Activate()
Application.StatusBar = "Ready and willing"
End Sub
Private Sub Worksheet_Deactivate()
Application.StatusBar = False
End Sub
Or similar to handle all sheets, try the following in the Thisworkbook
module (rt click XL icon left of 'File' menu and view-code)
' either
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.StatusBar = Sh.Name & " looking useful"
End Sub
' or
Private Sub Workbook_Activate()
'Application.StatusBar = Me.FullName
End Sub
' but not both the above
Private Sub Workbook_Deactivate()
Application.StatusBar = False
End Sub
Regards,
Peter T