Excel puts these little yellow sticky notes which it attaches to a cell.
Am writting a lovley little application that brings all the data from excel which will be put into SQL.
Have almost finished with it except where I come across a comment (yellow note). I need to extract that infromation and put it into a variable.
Here is some code that I am playing around with
excel_sheet_TEST.Cells(2, 1).Comment.Text
This works perfectly if the comment exists.
How I would need it to work is
IF A_comment_Exists THEN
excel_sheet_TEST.Cells(2, 1).Comment.Text
end if
Does anyone know how I can check if the comment exists
It's a mind baffeler for me
Am writting a lovley little application that brings all the data from excel which will be put into SQL.
Have almost finished with it except where I come across a comment (yellow note). I need to extract that infromation and put it into a variable.
Here is some code that I am playing around with
excel_sheet_TEST.Cells(2, 1).Comment.Text
This works perfectly if the comment exists.
How I would need it to work is
IF A_comment_Exists THEN
excel_sheet_TEST.Cells(2, 1).Comment.Text
end if
Does anyone know how I can check if the comment exists
It's a mind baffeler for me