Sorry my bad. What I gave you is a solution that works foe Excel 2010 and higher. In these versions of Excel you do have 3 different engines. The GRG Non-linear (engine 1), the Simplex Lp (engine 2) and finally the Evolutionary (engine 3).
As you are running Excel 2007 were the models are Simplex and GRG you specify what engine solver should use a bit different that's why the macro can't cope with "Engine:=2"
You can use a macro like this instead should work both for Excel 2003 and 2007.
In this macro solving method is set by "AssumeLinear:=True" i.e. solver will use the simplex model in order to solve the problem. To use the GRG engine one sets "AssumeLinear:=False"
Macro assumes same layout on the excel file as the one I uploaded.
Alf
Bookmarks