Hi guys, Could you please help me in solving the run time error 1004, "reference is not valid" in the following code line with text highlighted Red
>>> use code - tags <<<
>>> use code - tags <<<
Code:
Sub UltMoment()
Dim datalist, n, m, i
datalist = Range("Mu_1")
n = UBound(datalist, 1)
m = UBound(datalist, 2)
For i = 1 To m
Range("Mu_1").Cells(n, i).GoalSeek Goal:=0, ChangingCell:=Range("Mu_1").Cells(1, i)
'SolverOk SetCell:=Range("Mu_1").Cells(n, i), MaxMinVal:=3, ValueOf:=0, ByChange:=Range("Mu_1").Cells(1, i)
'SolverSolve userfinish:=True
Next i
End Sub
Last edited by a moderator: