SyntaxFix
Write A Post
Hire A Developer
Questions
I would do it like this:
Worksheets("EmployeeCosts").Range("B" & var1a).Formula = _ Replace("=SUM(H5:H{SOME_VAR})","{SOME_VAR}",var1a)
In case you have some more complex formula it will be handy