E
Evaluate function parameter as VBA code
Dear all
I want make a function which can be used in excel cell just like "=aaaa(x,
y)", and the result of function is a matrix, maybe 1x10, 10x1, 10x20 etc.
I tried to use the left-up cell of the output range as the additional
input paramter, just like "=aaaa(x,y, F10)"
Unfortunately, I CANNOT write any number to the output range....but I can
read data from the input cell
Function aaaa(x as double, y as double, output as Range) as boolean
x = output.range("A1").value ' this will WORK
output.range("A1").value = 10 ' this will FAIL
End Function
How can I return a matrix??
thanks~~
Sincerely.
I want make a function which can be used in excel cell just like "=aaaa(x,
y)", and the result of function is a matrix, maybe 1x10, 10x1, 10x20 etc.
I tried to use the left-up cell of the output range as the additional
input paramter, just like "=aaaa(x,y, F10)"
Unfortunately, I CANNOT write any number to the output range....but I can
read data from the input cell
Function aaaa(x as double, y as double, output as Range) as boolean
x = output.range("A1").value ' this will WORK
output.range("A1").value = 10 ' this will FAIL
End Function
How can I return a matrix??
thanks~~
Sincerely.