ExcelDNA throwing exception accessing Range.Value2
问题 I am porting an excel addin (used shimloader) to exceldna, and yeah, I have seen the other SO (and off SO) questions but nothing resolves my question, and I'm hoping there are newer solutions. The code is simple. [ExcelFunction(Name="DoSomething")] string DoSomething() { var xl = ExcelDna.Application; var callerCell = xl.Caller; var row = getRow(excelReference.RowFirst+1, callerCell.WorkSheet) ; } In GetRow(): var row = (Range)worksheet.Rows[row]; var cell = (Range)bracketRow.Columns[4]; When