I have an excel workbook using the Solver add-in. In my workbook, I am using solver to optimize a group of cells, however I do not want the user to be able to modify the cells. When I try to lock the sheet and run the solver macro, I get an error saying the sheet is protected therefore read-only. I have tried to lock the sheet allowing the user to edit objects/scenarios but that does not to work. Is there a way to lock a worksheet so that a VBA script can still edit cells, however the user cannot?