Hi Dave

You need to set a reference to Solver in Visual Basic

Click Visual Basic icon, select tool -> References and tick box marked "Solver"

Alf