Thread
:
Calling a function and then returning
View Single Post
#
5
Posted to microsoft.public.excel.misc
CLamar
Posts: n/a
Calling a function and then returning
I can get the code to do that but I want it to return to the previous
location before it exits the called function
"Ardus Petus" wrote:
Hi CLamar,
Say you have a function name MyFunc with argument Arg:
Your code might look like this:
var2= 0
MyVar=MyFunc(myArgs)
var2=1
Code will return to the location after you called MyFunc
I Think I'd better redirect you to some kind of tutorial...
Cheers,
--
Ap
"CLamar" a écrit dans le message de news:
...
I dont understand can you go into more detail?
"Ardus Petus" wrote:
Just assign the function's return value to a variable, like:
myVar = MyFunc(MyArgs)
HTH
--
AP
"CLamar" a écrit dans le message de
news:
...
How do you call a function and then return to the previous location
from
which you called it.
Thanks
Clamar
Reply With Quote