I am using SpreadsheetGear 2017 (the latest) to read an Excel 2016 .xlsm file. One cell is giving me a #Ref! error when I debug, even though the cell displays the value fine in the spreadsheet itself.
The cell's formula is MY_OUTPUT=IF(ISBLANK(NAME_INPUT),"Please Enter Name",OUTPUT_1)
The OUTPUT_1 cell's AllowEdit property is false. Could that cause a problem? The code is basically
SpreadsheetGear.IWorksheet worksheet = workbook.Worksheets[0];
SpreadsheetGear.IRange cells = worksheet.Cells;
string test1 = cells["MY_OUTPUT"].Text; //Text = #Ref!
What could be a possible cause of this error?
Revision: The cell references another cell, which references a hidden worksheet cell(s), which I didn't know about, and it was not captured by the code. Unfortunately, I can't share the Excel file as it's confidential. I would appreciate any guidance as to how to use SpreadSheetGear with both worksheets of the Excel file.