sudit
9 years agoNew Contributor
Solved
I have an requirement to read Comments present in cells of spreadhseet from Excel.
Hi,
I have a requirement to read Comments from Excel Cells.With TestComplete I tried using Sys.OleObject("Excel.Application") and navigated to repsective sheet.
Later i used the below command:-
Excel.Worksheets(4).Range("B1").Comment.Text;
I get an error stating Object doesnt support this property or method.
Can anyone help me with a solution to read the comment of the cell.
Thanks
Sudit
"Text" is a method, not a property. Use
Excel.Worksheets(4).Range("B1").Comment.Text();