can't delete old solver data. can't save file where solver was reset.

Copper Contributor

I work with workbooks having multiple tabs and about 200,000 cells, 90% of which have formulas.   I use the Solver addin for these workbooks

 

I've run into two bugs in Excel 365, 64 bit which is preventing me from using Solver, and preventing me from saving a worksheet which took hundreds of hours to create and refine.

 

If I have a small table containing the list of variables for the entire worksheet, on worksheet "A" and cut/paste that table to an empty space in worksheet "B", open solver, hit the "reset all" button and then enter new data, constraints etc., Solver will rename some of the constraints to some kind of code, rather than the expected formulation (e.g. "B5>=1").   Solver will instead save that as something like solver_lhs5 >=1

 

See this screenshot, and notice last two constraints.

https://www.dropbox.com/s/ns4bd6w2n6nmy7n/Screenshot%202017-08-09%2014.01.16.png?dl=0

 

If I try the "reset all" button again, the problem is replicated.

 

Worse, if I hit "reset all" button and try to save the workbook I get this message:  "Errors were detected while saving ___ . Microsoft Excel may be able to save the file by removing or repairing some features. To make the repairs in a new file, click Continue..."

 

So I click "Continue" and get another error message saying "document not saved."

 

If this were a simple worksheet I'd just copy it over to a new one.  But this is a complex workbook, and in the past when I've tried to copy/paste pages from it, the new workbook will contain references in its formulas back to the orignial workbook.    That means I have to discover, find/replace those references.  A tedious task! 

 

PS, when I first contacted Microsoft about this I was first connecteed to a tech who could not solve the problem.   As a last resort she suggested doing an "online repair" which I did.   After the online repair, the suite notifed me that my software wasn't activated.   But when trying to activate it, I was presented with a window saying that the page could not be found.   I contacted Microsoft again.  A new tech suggested remote access.  He managed to screw up the VPS on which I was running office, leaving me unable to connect to it.   I got that resolved on my own.    In any case, this issue is not confined to this one computer or workbook.  It occurs on another computer with another version of my workbook.

 

It might be more efficient to resolve this issue if someone could tell me how to copy/paste a complex workbook to a new one, in a way which does not refer formulas back to the original one.  Then in the future, I just won't try to move my "solver" inputs to another worksheet!

 

Thanks.

 

6 Replies

Hi Walter,

 

Didn't test right now, what could work

- open old and new workbooks

- select ALL worksheets in first workbook (click on first sheet tab, press Shift, click on last tab)

- from right click Move and Copy, select copy, select second workbook from drop down menu and copy

 

 

Thanks, but this led to another problem.

 

I first tried your suggestion, but the Solver issue reappeared in the new workbook. 

 

So I decided to "reset all" in Solver before copying the sheet to a fresh book.   When I tried that, I was presented with a new error message "Cannot do this command in Group Edit Mode."

 

I googled a bit trying to find a simple fix but the articles I pulled up had more to to with setting up group mode than removing it.

 

 so... what next?  Thanks

 

Walter, sorry, but i never worked with Solver, can't help with fixing of it.

 

Just in case, some ago i had an issue with "file can't be saved", fixed that by switching off Autosave option. That's not your case, but who knows. 

Thanks.  This is my first time in this foum. Will my post remain "alive" until someone else sees it?

Walter,

 

Yes, it always will be here. Another story if nobody answers in few days there are low chances it'll be answered at all.

 

Group Edit mode - that means few or all of your sheets are selected. I guess Solver shall not to work in such mode by design. By the way, i forgot there is Select All / Ungroup in right click menu for sheets tabs. Ungroup them before doing something with Solver.

 

And one point more - did you try to disable Solver Add-in in Excel Options?

Yes, thanks, I did try removing solver and rebooting but that didn't work. 

 

I'm posting in other forums for help and working on other ideas...