Output all text from a cell comment, including comment author, with this UDF in Excel. This UDF (user defined function) has only one argument and is very easy to use. Simply, point the range argument to a cell that contains a comment and then hit enter. This function in Excel will then return all of the text and the author's name from the comment. The author's name is just the default text that appears in bold before the text in a comment.
If you want a UDF for Excel that returns only the comment text, without the author, check out the other UDF on this website that does that.
Function GETCOMMTEXTWITHAUTH(rCommentCell As Range)
Dim cmnt As String
On Error Resume Next
cmnt = WorksheetFunction.Clean(rCommentCell.Comment.Text)
GETCOMMTEXTWITHAUTH = cmnt
On Error GoTo 0
End Function