Or, if the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook,
Public Function MyReturnArrayFunction(iScalar As Single) As Variant()
On Local Error GoTo ErrHandler
Dim myRawProbs() As Variant
myRawProbs = Array(19, 38, 57)
MyReturnArrayFunction = _
ScalarMult(Application.Transpose(myRawProbs), iScalar, False)
Exit Function
ErrHandler:
Debug.Print Err.Description & " (" & Err.Number & ")"
End Function
called as
=MyReturnArrayFunction(19)
will do so.
Alan Beban