I don't know how to explain this well so please bare with me.
Say you have a function(a, b, c, d, e)
if I do dummy(a1#,b1#,c1#,d1#,e1#) Everything works.
If I do Let(
one,index(xx,match(xx,xx)),
two,index(xx,match(xx,xx)),
three,index(xx,match(xx,xx)),
four,index(xx,match(xx,xx)),
five,index(xx,match(xx,xx)),
dummy(one,two,three,four,five))
It doesn't work.
On the VBA side:
Dim results() As Variant
maxrows= a.rows.Count
ReDim results(1 To maxRows)
For i = 1 To maxRows
say:
doo(a.cells(i),b.cells(i),c.cells(i),d.cells(i),e.cells(i))
Say you have a function(a, b, c, d, e)
if I do dummy(a1#,b1#,c1#,d1#,e1#) Everything works.
If I do Let(
one,index(xx,match(xx,xx)),
two,index(xx,match(xx,xx)),
three,index(xx,match(xx,xx)),
four,index(xx,match(xx,xx)),
five,index(xx,match(xx,xx)),
dummy(one,two,three,four,five))
It doesn't work.
On the VBA side:
Dim results() As Variant
maxrows= a.rows.Count
ReDim results(1 To maxRows)
For i = 1 To maxRows
say:
doo(a.cells(i),b.cells(i),c.cells(i),d.cells(i),e.cells(i))