Function Obj_Fnc_Colmn(IN1 As Range, OP1 As Range)
Application.Run "Solver.xlam!Auto_Open"
SolverReset
X_var = IN1.Address
Y_var = OP1.Address
MsgBox X_var
SolverOK SetCell:=Y_var, MaxMinVal:=3, ValueOf:="0", ByChange:=X_var
SolverAdd CellRef:=X_var, Relation:=3, FormulaText:="0"
SolverSolve UserFinish:=False
End Function
Intention of the program is to input different set of objectives, change variables in multiple columns.
Please go through my code. Keep generating error. Same program would like to use for multiple columns.

Solver.xlam!Auto_Open. If you want to make sure the Solver add-in is enabled and reachable from VBA use the code here: Preparing Solver for first use. HTH