I have seen several examples of how to read cell comments. I am doing it slightly different and I guess my syntax is wrong??
My line that tries to set sComment = Cells(r,c).Comment.Text does not ever grab the Comments from the cell. I'm hoping this is dumb format/syntax problem.
My line that tries to set sComment = Cells(r,c).Comment.Text does not ever grab the Comments from the cell. I'm hoping this is dumb format/syntax problem.
Code:
DIM sComment as Comment
...
On Error Resume Next
sComment = Cells(iRow, iCol).Comment.Text 'Even if there is a comment, this line does not see it??
If Not sComment Is Nothing Then
If sComment.Text = "#LAST_ROW" Then
bStop = True 'Defined globally so main method can use.
Exit Do
End If
End If