Write a formula in an Excel Cell using VBA

后端 未结 5 627
Happy的楠姐
Happy的楠姐 2020-12-11 01:01

I\'m trying to use VBA to write a formula into a cell in Excel. My problem is that when I use a semicolon (;) in my formula, I get an error:

5条回答
  •  半阙折子戏
    2020-12-11 01:08

    The correct character (comma or colon) depends on the purpose.

    Comma (,) will sum only the two cells in question.

    Colon (:) will sum all the cells within the range with corners defined by those two cells.

提交回复
热议问题