View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default UDF Can't return more than 255 chars???

On 30 Jun 2006 10:50:23 -0700, "R Avery" wrote:

I agree that if i specify the member, then it works, but that is not my
intent. the problem is not returning a single value but rather
returning an array. My real application returns an array with multiple
members, i just chose to use the single-item array for illustration
purposes.

If you specify the member of the array, it seems to work OK.

In other words, in function1:

HOHO = v(0,0)


--ron


I seem to recall Harlan Grove writing about some obscure limitations that Excel
has in handling strings 255 characters under certain circumstances. It is
clear that, within the UDF, HOHO does, indeed, contain the long string.

Perhaps you could use a Sub to assign elements of the array to various cells.
Or perhaps someone else has a proper solution.
--ron