Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rick:
Thanks very much for reply. I'm not sure how much better I can explain, but here goes: Cell $A$1's formula is: =x("abc",123,y(999),z(y(999))) In VBA routine xx() (which is not a sheet function), what must I do to get an array whose members are the params of x() living--granted, in one big, undifferentiated string--in $A$1, namely the 4 strings "abc", "123", "y(999)" and "z(y(999))"? Excel knows how to do it because it does do it. It parses all those commas and parens in a .Formula string to get x's params. It even supports nesting (when a param is itself a function call). The only thing is, x()'s ParamArray seems to be available only to code lucky enough to reside in the tiny, gated community lying between the statements "Function x(ParamArray Params())" and "End Function". And, as you clearly say, that code ain't executing during your VBA runtime. (Unless, as I said, there's some way to do a "calc" or "simulated execute" on $A$1 to get its params.) But just because x()'s *own* code isn't executing doesn't mean we don't need those params elsewhere, at times. So, does Excel publish its param-parsing intelligence? It ought to. Because otherwise we poor programmers have to reverse- engineer it. Thanks. *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CONDITIONAL FORMATTING FOR ONE CELL TO MATCH ANOTHER'S TEXT | Excel Discussion (Misc queries) | |||
Er...tell me again why I can't pass ParamArray to a Function? | Excel Programming | |||
Passing ParamArray to another function converts it to TWO dimensions. | Excel Programming | |||
Help with paramarray | Excel Programming | |||
Link the format of one cell to another's | Excel Worksheet Functions |