Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CLamar
 
Posts: n/a
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"