Writing into Range.FormulaArray gives me a #NAME! error

前端 未结 1 1891
太阳男子
太阳男子 2020-12-12 06:12

Nothing really fancy here, altough I need to split the formula in 2 because it is longer than 255 characters (sources: http://www.dicks-blog.com/archives/2005/01/10/entering

相关标签:
1条回答
  • 2020-12-12 06:34

    Because Excel has .Formula for formulas in English and .FormulaLocal for formulas in the language of the Excel interface.

    You need the local version, but there isn't one for arrays. You have to provide array formulas in English.

    You could e.g. set this French formula to .FormulaLocal of a temporary (hidden) range, then read back .Formula from the same range and set that as .FormulaArray on the desired range. But you shouldn't, because your code won't work on any Excel version other than French. The most portable thing is to always use English formulas in your code.

    0 讨论(0)
提交回复
热议问题