When I open an Excel spreadsheet in Excel that my Xojo app has created I get this alert:
We found a problem with some content in ‘My Ret Plan.xlsx’. Do you want us to try to recover as much as we can?
After opening the spreadsheet the repair log says
****Removed Records: Formula from /xl/worksheets/sheet1.xml
I have found that the problem is writing a formula with a reference to another worksheet such as this
theStr="=("+prevCol+theRow+"-1000)*(1 + Factors!"+thisCol+theRow+")"
call gSheet0.WriteFormula(row,i,theStr)
On the other hand this code causes no error
call gSheet0.WriteFormula(99,i,"=Transfers!"+col+"24")
I am out of ideas.
3 posts - 2 participants