Greetings,
I am currently receiving a Expected End of Statement Error on the following line.
The user defined function includes the following variables:
and outputs an "output" array:
My question is how the user defined function should appear in a vba subroutine to produce output of the size shown above. I suspect that the INDEX statement will need to show a range of cells instead of ROW(A1), COLUMN(A1).
Thanks
I am currently receiving a Expected End of Statement Error on the following line.
Code:
wkbk_LO.Worksheets(c).Range(Cells(g, "A")).value = "=INDEX(PERSONAL.XLS!LOGIT([LOGREG_INPUT.xls].worksheets(c).Range(cells(2,"B"),cells(g,"B")), [LOGREG_INPUTS.xls].worksheets(c).Range(cells(2,"D"),cells(h,"I")),0.8,TRUE,TRUE),ROW(A1),COLUMN(A1))"
The user defined function includes the following variables:
Code:
Function Logit(known_y As Range, known_x As Range, Cutoff As Double, Optional Constant As Boolean = True, Optional Stats = False)
and outputs an "output" array:
Code:
ReDim output(1 To 26, 1 To M + 1) As Variant
My question is how the user defined function should appear in a vba subroutine to produce output of the size shown above. I suspect that the INDEX statement will need to show a range of cells instead of ROW(A1), COLUMN(A1).
Thanks