Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA function return matrix?

Hi,

Can a user defined VBA function return a matrix (as do built-in function
such as MINVERSE)?

--
Regards,
Steve O'Hagan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default VBA function return matrix?

Yes.

Alan Beban

Steve O'Hagan wrote:
Hi,

Can a user defined VBA function return a matrix (as do built-in function
such as MINVERSE)?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA function return matrix?

in addition to Alan's excellent answer, you can look at some additional
information on Chip Pearson's page on this topic:

http://www.cpearson.com/excel/returnin.htm
Returning Arrays


--
Regards,
Tom Ogilvy

"Steve O'Hagan" wrote in message
...
Hi,

Can a user defined VBA function return a matrix (as do built-in function
such as MINVERSE)?

--
Regards,
Steve O'Hagan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default VBA function return matrix?

I guess what was left out of both my excellent answer and Chip Pearson's
cited page is that if the function is called from the worksheet, then
to return a matrix it needs to be array entered into the appropriate
sized range, just like the built-in functions.

Alan Beban

Tom Ogilvy wrote:
in addition to Alan's excellent answer, you can look at some additional
information on Chip Pearson's page on this topic:

http://www.cpearson.com/excel/returnin.htm
Returning Arrays



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to return value from a matrix - I know hor and vert values UKMAN Excel Worksheet Functions 14 May 12th 10 01:19 PM
Creating a formula to return a particular result from a Matrix Tab Dave Ah Ching Excel Discussion (Misc queries) 5 November 17th 06 01:19 AM
Limits of MINV matrix function KJ Excel Worksheet Functions 2 September 16th 05 09:06 AM
How to use an array or matrix to return text vs. numeric values Ingrid Excel Worksheet Functions 2 April 10th 05 12:51 AM
Matrix Multiplication Function creation Gabriel[_3_] Excel Programming 1 December 16th 03 04:39 PM


All times are GMT +1. The time now is 01:28 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"