G
Guest
I would like to check to see if a cell has a comment or not, without using a
macro. In other words, If the value of the cell is between 10 and 20, and
there is not a comment attached to that cell, I want to display "No". If the
value of the cell is between 10 and 20, and there is a comment attached to
that cell, I want to display "Yes".
In a macro, I can use:
If (Cells(row, col).Comment Is Nothing) Then
'do nothing, there is no comment to process
Else
' We have a comment ... do all the stuff I need to do
But since I only want to display some text, nothing complicated, I'd really
like to use an "IF" function. Can this be done?
Thanks
CRH
macro. In other words, If the value of the cell is between 10 and 20, and
there is not a comment attached to that cell, I want to display "No". If the
value of the cell is between 10 and 20, and there is a comment attached to
that cell, I want to display "Yes".
In a macro, I can use:
If (Cells(row, col).Comment Is Nothing) Then
'do nothing, there is no comment to process
Else
' We have a comment ... do all the stuff I need to do
But since I only want to display some text, nothing complicated, I'd really
like to use an "IF" function. Can this be done?
Thanks
CRH