View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
agarwaldvk[_48_] agarwaldvk[_48_] is offline
external usenet poster
 
Posts: 1
Default return 2 or more variables from a function


David

You cannot return more than one variable from a function.

What you can do though is return a variant containing an array. Thi
array can contain any number of values that you might want to retun.

Remember, a variant can contain any data type and that includes a
array of variants as well.

Hope that helps!


Best regards


Deepak Agarwa

--
agarwaldv
-----------------------------------------------------------------------
agarwaldvk's Profile: http://www.excelforum.com/member.php...fo&userid=1134
View this thread: http://www.excelforum.com/showthread.php?threadid=48611