Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array of 100X250 as return of a user defined function?
I need to build a function that returns a array of 100X250 elements. I do a function like in a module that
Public Function Func2() As Varian Dim i, j As Lon Dim varA As Variant ReDim varA(10, 10) For i = 1 To 1 For j = 1 To 1 varA(i, j) = Nex Nex Func2 = var End Functio Public Function Func3() As Varian Dim i, j As Lon Dim varA As Variant ReDim varA(40, 250) For i = 1 To 4 For j = 1 To 25 varA(i, j) = Nex Nex Func3 = var End Functio when I put the formula =Func2() in a cell and use CTRL+ENTER, its works fine, but when I put the formula =Func3() I receive a #Value!. I think that it is because the number of elements of array. How bypass it? It´s possible to construct a function puts a array of 100 row, 250 cols in a Excel SpreadSheet I use Excel 2000 Thanks for the suggestion Andersson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Array as Argument in User-Defined Functions | Excel Programming | |||
Array as Argument in User-Defined Functions | Excel Programming | |||
Find size of array passed to user-defined function | Excel Programming | |||
How do I convert a user defined selection into an array? | Excel Programming | |||
Passing an Array of User-Defined Type to an Argument of a Function | Excel Programming |