This example changes the type of the decision variable in cell B4 to Custom and passes the following values to it: 10, 20, 30, 40.
CB.SetDecVar Range("B4"), cbDecType, cbDecVarTypeCustom CB.SetDecVar Range("B4"), cbDecCustomData, "10, 20, 30, 40"