this is simple demo of what i want to do. I want to set a formula to a range of cells(eg. C1 to C10).
Range(\"C1\").Formula = \"=A1+B1\"
bu
Use FormulaR1C1:
Cells((1,3),(10,3)).FormulaR1C1 = "=RC[-2]+RC[-1]"
Unlike Formula, FormulaR1C1 has relative referencing.