I have a code in my macro that return me in my Cell(A5) result like #name
?
Range("A5").Select
ActiveCell.FormulaR1C1 = "=Application.Sum(Range(Cells(1, 5), Cells(20, 5)))"
End Sub
#name?
include a formula of text between quotation marks in my VB code
=Application.Sum(Range(Cells(1, 5), Cells(20, 5)))
If i will write without quotation marks it will returns me a result.(sum of range)
ActiveCell.FormulaR1C1 = Application.Sum(Range(Cells(1, 5), Cells(20, 5)))
but I need to have in my cell A5 result and formula, how i got this result. Maybe it's enough to change some options?