I\'m writing a function in VBA to use in excel formula, it\'s ok if my function return a single value:
=MYVALUE(A1)
Now I wrote another fu
the reason is that your vector actually is being displayed horizontally, if you create an array formula horizontally you will get your numbers. For you to have a vertical vector use the following:
Function MYARRAY(x As Integer)
MYARRAY = Application.WorksheetFunction.Transpose(Array(10, 20, 30))
End Function