Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Returning an array from a UDF to a column range

My experience has been that when I return an array value
from a UDF custom function, it expects to be put into a
row range, i.e. the function call needs to be made from a
row of cells. Is there any way to call an array function
from a column of cells and get the right results? I get
a repeat of the first item in the array when I call from
a column, whereas I get all the array elements when I
call from a row range.

Clarification would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Returning an array from a UDF to a column range

where arr is a single dimension array,

Public Function MyFunc(arr)
myfunc = Application.Transpose(arr)
End Function

would work for a column.

--
Regards,
Tom Ogilvy

Ron Davis wrote in message
...
My experience has been that when I return an array value
from a UDF custom function, it expects to be put into a
row range, i.e. the function call needs to be made from a
row of cells. Is there any way to call an array function
from a column of cells and get the right results? I get
a repeat of the first item in the array when I call from
a column, whereas I get all the array elements when I
call from a row range.

Clarification would be appreciated.



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
Returning an array of unique values? Blue Max Excel Worksheet Functions 10 January 16th 08 02:51 AM
Returning an address from an array wienmichael Excel Discussion (Misc queries) 6 May 2nd 07 02:53 AM
Returning an array from the INDEX function Agenor Excel Worksheet Functions 2 November 28th 06 12:44 AM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Discussion (Misc queries) 3 June 16th 06 07:05 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Worksheet Functions 3 June 16th 06 07:05 PM


All times are GMT +1. The time now is 12:05 AM.

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"