B
blatham
Does anyone know how I can do the above.
I am constructing a list of arguments in one sub to pass to another.
Something along the following lines:
Sub One
Dim sArgs() As String
j = 0
ReDim Preserve sArgs(j)
sArgs(j) = Chr(34) & "Arg1" & chr(34)
j = 1
ReDim Preserve sArgs(j)
sArgs(j) = Chr(34) & "Arg2" & chr(34)
Call Sub2(Join( Args(), ",")
End Sub
Sub2(ParamArray Args())
'Sub 2 Code
End Sub
I know the problem lies in the fact that the join statement returns
single string. I want to know how I can have the strings separated b
comma recogonised as separate arguments for Sub 2 to accept
I am constructing a list of arguments in one sub to pass to another.
Something along the following lines:
Sub One
Dim sArgs() As String
j = 0
ReDim Preserve sArgs(j)
sArgs(j) = Chr(34) & "Arg1" & chr(34)
j = 1
ReDim Preserve sArgs(j)
sArgs(j) = Chr(34) & "Arg2" & chr(34)
Call Sub2(Join( Args(), ",")
End Sub
Sub2(ParamArray Args())
'Sub 2 Code
End Sub
I know the problem lies in the fact that the join statement returns
single string. I want to know how I can have the strings separated b
comma recogonised as separate arguments for Sub 2 to accept