'=ShowComment(A1)
Function ShowComment(commentCell As Range) As String
On Error GoTo EndNow
ShowComment = Replace(commentCell.Comment.Text, vbCrLf, vbLf)
EndNow:
End Function
</PRE>Function GetCommentText(rCommentCell As Range) Dim strGotIt As String On Error Resume Next strGotIt = WorksheetFunction.Clean(rCommentCell.Comment.Text) GetCommentText = strGotIt On Error GoTo 0 End Function
Function GetCommentText(rComment As Range) As String
Application.Volatile
On Error Resume Next
GetCommentText = rComment.Comment.Text
End Function
You'll want to make that volatile so you can recalculate it with F9.
Code:Function GetCommentText(rComment As Range) As String Application.Volatile On Error Resume Next GetCommentText = rComment.Comment.Text End Function