How to return more than one value

aziz rasul

Active member
Local time
Today, 14:04
Joined
Jun 26, 2000
Messages
1,934
Can anyone demonstrate how a function can return more than one value, assuming that this is possible.
 
Hi aziz,

by default VB passes arguments/parameters by reference ( you can also make this explicit if you want, which is a good idea for maintainance ), anything you do to the var in your function will directly alter the one you passed in - they are pointing to the same piece of memory,

HTH

Drew
 
Thank you both for your contributions.

Pat can you give me an example. I'm new to VBA and hence probably will struggle with it.
 

Users who are viewing this thread

Back
Top Bottom