MikeC14081972
Programmer
I have a function that creates an Excel spreadsheet, from Access 2000, which is working fine. However I need to pass a formula to a specific cell.
I'm using the following code where balSrt is the first rown and balEnd is the last cell in the range.
When this line is executed the cell shows the value #Name and the cell contains =SUM('D20':'D62')
My Question is how to remove the single quotes so Excel recognises the string as a formula.
Thanks
I'm using the following code where balSrt is the first rown and balEnd is the last cell in the range.
Code:
.offset(irow,icol).formulaR1C1 = "=SUM(D" & balSrt & ":D" & balEnd & ")"
When this line is executed the cell shows the value #Name and the cell contains =SUM('D20':'D62')
My Question is how to remove the single quotes so Excel recognises the string as a formula.
Thanks