G
Gibson
I am trying to pass three variables to a function. In the sub I dim each as
a string, I set them to the appropriate value then I use the the next line
to call the function Test1. The variables are of course V1,V2,V3.
Test1(V1,V2,V3)
Function Test1(str2 As String, str3 As String, str4 As String)
code
End Function
If I use just one variable to pass it works fine. When I try to put 3 to
pass, that is to say when I put in the V2 and V3 in the calling statement I
get an error telling me a = is Expected. ("Expected: =") I assume one can
pass multiple variables to a function. Can someone enlighten me.
Thanks
a string, I set them to the appropriate value then I use the the next line
to call the function Test1. The variables are of course V1,V2,V3.
Test1(V1,V2,V3)
Function Test1(str2 As String, str3 As String, str4 As String)
code
End Function
If I use just one variable to pass it works fine. When I try to put 3 to
pass, that is to say when I put in the V2 and V3 in the calling statement I
get an error telling me a = is Expected. ("Expected: =") I assume one can
pass multiple variables to a function. Can someone enlighten me.
Thanks