Set formula to a range of cells

后端 未结 6 2036
日久生厌
日久生厌 2020-12-03 03:40

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

6条回答
  •  我在风中等你
    2020-12-03 04:08

    Range("C1:C10").Formula = "=A1+B1"
    

    Simple as that.

    It autofills (FillDown) the range with the formula.

提交回复
热议问题