Apostrophe added during code
--------------------------------------------------------------------------------
I am trying to create an excel file from code within an Access database.
When I use the following line in my code it works but comes out as =Sum('D22':'D35')
The apostrophes return #NAME? error.
Can somebody help as to what I should be putting in my code to stop the apostrophes?
Thanks in advance
Jonathan
--------------------------------------------------------------------------------
I am trying to create an excel file from code within an Access database.
When I use the following line in my code it works but comes out as =Sum('D22':'D35')
Code:
.ActiveSheet.Range("D" & x).FormulaR1C1 = "=SUM(D22:D" & x - 1 & ")"
Can somebody help as to what I should be putting in my code to stop the apostrophes?
Thanks in advance
Jonathan