irisqueiroz
Member
Hi,
I'm tryng to write a code that uses the outputs of a UDF that's a Formula Array.
Function GARCHparams(rets, startParams)
GARCHparams = NelderMead("GARCHMLE", rets, startParams)
End Function
When I record the macro, the code is:
That is, the output is in the 4 cells range ("O1:O4"). How can I get this 4 outputs in the VBA code? For example, x = output1; y=output2; w=output3 and z=output4 ... without needing to use the sheet to calculate it.
Thanks!
I'm tryng to write a code that uses the outputs of a UDF that's a Formula Array.
Function GARCHparams(rets, startParams)
GARCHparams = NelderMead("GARCHMLE", rets, startParams)
End Function
When I record the macro, the code is:
Code:
Range("O1:O4").Select
Selection.FormulaArray = _
"=GARCHparams(R1C8:R200C8 , R2C12:R4C12)"
That is, the output is in the 4 cells range ("O1:O4"). How can I get this 4 outputs in the VBA code? For example, x = output1; y=output2; w=output3 and z=output4 ... without needing to use the sheet to calculate it.
Thanks!