I have written code which goes though a document checking that the right font etc. has been used. When it finds an error, it calls the Sub below:
Setting Initial ="" works fine but it still leaves the word "Comment" in the comment box as in :
[blue]Comment[1]:Incorrect Font Size (9)[/blue]
As there may be quite a lot of Comment boxes, the less I have in them the better. Does anyone know how I can remove the word "Comment" which seems to be a mandatory prefix?
Thanks
Code:
Private Sub Add_Comment(ByRef CommentRange As Range, CommentStr As String)
CommentRange.Select
Selection.Comments.Add Range:=Selection.Range
Selection.Comments(1).Initial = ""
Selection.TypeText Text:=CommentStr
End Sub
[blue]Comment[1]:Incorrect Font Size (9)[/blue]
As there may be quite a lot of Comment boxes, the less I have in them the better. Does anyone know how I can remove the word "Comment" which seems to be a mandatory prefix?
Thanks