mbentley Registered User. Local time Today, 16:03 Joined Feb 1, 2002 Messages 138 Jan 9, 2004 #1 I want to create a function that accepts an array of values, rather than a predetermined number of arguments. Can anyone tell me the syntax for this? Thanks
I want to create a function that accepts an array of values, rather than a predetermined number of arguments. Can anyone tell me the syntax for this? Thanks
Mile-O Back once again... Local time Today, 23:03 Joined Dec 10, 2002 Messages 11,305 Jan 9, 2004 #2 Code: Private Function MyFunction(strArrays())
mbentley Registered User. Local time Today, 16:03 Joined Feb 1, 2002 Messages 138 Jan 9, 2004 #3 Thanks. I actually figured this out and forgot to remove my post. I used the Param Array argument. It worked, but was that necessary?
Thanks. I actually figured this out and forgot to remove my post. I used the Param Array argument. It worked, but was that necessary?
Mile-O Back once again... Local time Today, 23:03 Joined Dec 10, 2002 Messages 11,305 Jan 9, 2004 #4 If the array is explicitly declared then you can pass it as I mentioned. i.e. Dim myArray(1 To 10) As String If its simply declared with no LBound or UBound then you pass it with the ParamArray argument. i.e. Dim myArray() As String
If the array is explicitly declared then you can pass it as I mentioned. i.e. Dim myArray(1 To 10) As String If its simply declared with no LBound or UBound then you pass it with the ParamArray argument. i.e. Dim myArray() As String