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..ActiveSheet.Range("D" & x).FormulaR1C1 = "=SUM(D22:D" & x - 1 & ")"
Can somebody help as to what I should be putting in my code?
Thanks in advance
Jonathan
Bookmarks