Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
I am using XL2003 and seem to have a few problems when trying to use ParamArray within a UDF...can anyone tell me what is going on here? The problems I have are the following: 1) In the UDF, ParamArray is the final argument of 12. If I pass a range as this final argument (e.g. A1:A3) then when trying to access any element of the paramarray via its index number the code just stops and the function returns #VALUE error. Later, when debugging in the immediate window and trying to do the same thing I get a "subscript out of range" error. However, if I pass each argument separately in the UDF (i.e. A1, A2, A3 so that in this example there are now 14 arguments) then I can access each element in this way. Why can't I pass a range instead of having to pass each element separately? 2) VBA does not seem to like to pass ParamArray from one UDF to another? Is this correct? 3) Although I am using Option Base 1 it appears that the ParamArray is still zero-based. Is this correct? If anybody has any comments it would be greatly appreciated. Many Thanks Lloyd |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Bugs | Excel Worksheet Functions | |||
Help with paramarray | Excel Programming | |||
ParamArray | Excel Programming | |||
Excel VBA Bugs | Excel Programming | |||
2 bugs in Excel | Excel Programming |