經安全檢測,此網站為安全網站,請放心前往原始網址!

excel - In VBA, how to return an array / or write to cells using a function? - Stack Overflow

You are not allowed to write to non-caller cells directly from a worksheet function in Excel. If you want to use an array function (using the Shift-Ctrl-Enter) you need to change your code to: Function WriteArray() As Variant Dim arr(0 To 2, 0 To 1) arr(0

stackoverflow.com

網址安全性掃描由 google 提供