function(matrix(,) as array)as array
i.e. a function that takes a multidimensional array as argument and returns an array.
Also how do you input the values of the argument array?
Thanks
Function Matrix2(vStrArray() As String) As String()
' play with array
End Function
' A quick example if using it...
Dim strTest(2, 2) As String
Dim strings() As String
strTest(1, 2) = "Test"
strings = Matrix2(strTest)
Hope this helps
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
tvala - I'd like to double-check whether you're talking about input and output "arrays" being vba arrays or spreadsheet "arrays". (some people call worksheet functions like mmult "array functions")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.