B
Ben
I get this error
"compile error expected:="
This is what I am doing. Passing in 2 strings from a
function into a sub in the same module.
IE.
public function testFunction()
dim strA as string = "hi"
dim strB as string = "bye"
testSub(strA, strB)
end function
public sub testSub(tempStringA as string, tempStringB as
string)
'.... do stuff in here with the 2 input strings
end sub
so when I type in "testSub(strA, strB)" above the compiler
gives the error expected:= is required.
In VBA can you only pass in one variable? Because when I
do it works fine.
Thanks,
Ben
"compile error expected:="
This is what I am doing. Passing in 2 strings from a
function into a sub in the same module.
IE.
public function testFunction()
dim strA as string = "hi"
dim strB as string = "bye"
testSub(strA, strB)
end function
public sub testSub(tempStringA as string, tempStringB as
string)
'.... do stuff in here with the 2 input strings
end sub
so when I type in "testSub(strA, strB)" above the compiler
gives the error expected:= is required.
In VBA can you only pass in one variable? Because when I
do it works fine.
Thanks,
Ben