As I'm now aware, array in Excel have two kinds of representation :
{1,2,3,4} also known as "one-dimensional horizontal array"
and
{1;2;3;4} also known as "one-dimensional vertical array"
I created a VBA function that return an array but when I use it in a function that need arrays (SUMPRODUCT), Excel display it with commas. So it always interpret it as an horizontal array. It's fine if I want to have the product with another horizontal array but it doesn't work when I try with a vertical array.
VBA :
Function MyRange()
Dim output(2)
output(0) = 1
output(1) = 1
output(2) = 1
MyRange = output
End Function
Excel
=SUMPRODUCT(MyRange();{1,1,1}) works
=SUMPRODUCT(MyRange();{1;1;1}) is not working
My question ?
How I can have Excel to show {1;1;1} instead of {1,1,1} in the 1st array ?

=SUMPRODUCT(TRANSPOSE(MyRange());{1;1;1})?INDEX({1;1;1},0,1)orMyRange = Application.Transpose(output)in VBA