R
Ryan H.
Hi,
I have a function that accepts the following parameter:
Function Foo(wsheet as Worksheet)
....
....
End Function
when I call the function as in the following:
Foo(wksheet)
I get a ByRef error. Why can I send worksheet as a parameter? I think it has
something to do with references. The only way I see out of this is to make
the variable global, which offcourse is bad. How can this be done?
Thanks
I have a function that accepts the following parameter:
Function Foo(wsheet as Worksheet)
....
....
End Function
when I call the function as in the following:
Foo(wksheet)
I get a ByRef error. Why can I send worksheet as a parameter? I think it has
something to do with references. The only way I see out of this is to make
the variable global, which offcourse is bad. How can this be done?
Thanks