Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


passing arrays between functions

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
simon



Joined: 30 Aug 2005
Posts: 1

PostPosted: Tue Aug 30, 2005 2:48 am    Post subject: passing arrays between functions Reply with quote

I would like to know if arrays defined within a function can be passed to another function, modified, and then an array is returned back into the calling function.

The example I have in mind is that of passing a matrix and a column vector into a regression function, and then passing the resulting parameter vector back into the calling procedure.

I wish to do this without defining all the parameters outside of the function and hence accessible to every function in the module.

Any example code of how a similar process is carried out would be great!

thanks, Simon.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group