Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Hello,
I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Hi Don,
I am having the exact same problem€¦have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
MSM<
No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem€¦have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Just throwing this out...
If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Dana,
I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Don. I was about to say I haven't seen this with xl 2007. However, I've
not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Hi Dana,
That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Hi. Ok.
1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
First, thaank you for your help. I loaded your first subroutine and it worked
as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#10
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Hi. Glad it worked. I am not sure why the corruption.
I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. BTW I did have to lower the security level in order to run the subroutine on the second spreadsheet. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#11
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Dana,
Sorry to bother you again. Everything worked ok with your 1st S/R yesterday, but today, trying it on a new spreedsheet, things aren't working. When I do your Step 4, there is no Solver in the list. I have tried it several times. I am doing something wrong, but I don't know what. TIA Don S. "Dana DeLouis" wrote: Hi. Glad it worked. I am not sure why the corruption. I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. BTW I did have to lower the security level in order to run the subroutine on the second spreadsheet. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: Hi Don, I am having the exact same problem.have you found a solution for it? Thanks for your help, MSM "Don S." wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. |
#12
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
When I do your Step 4, there is no Solver in the list.
Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip |
#13
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
Dana,
Again thanks a lot. Sorry for being slow to respond but I have had internet problems the last two days. I have not tried your latest suggestion, but will shortly. Take care, Don "Dana DeLouis" wrote: When I do your Step 4, there is no Solver in the list. Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip |
#14
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
I'm having the same problem with Excel 2007. Although I haven't found
a permanent solution, I have found a solution that seems easier than opening VBA everytime. If you un-add-in solver, then add solver back in, it seems to work fine and I get no error when I produce the reports. Considering I don't know much about VBA either, this seems easier, and may even be faster. You still have to do it everytime you open a new file though. |
#15
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
I have a problem related to solver for which I discovered the same solution
independently. I can't open a particular spreadsheet that uses solver without it crashing. (I have recreated the spreadsheet from scratch and the new one also crashes.) If after opening Excel I first remove Solver from the list of add-ins, then put it back, I can open the spreadsheet without any problem. This is with Excel 2007 in Vista. The spreadsheet loads a small table from an Access database and runs solver from VB code for each record in the table. Automatic calculation is off, so it shouldn't be doing anything when I open it. |
#16
Posted to microsoft.public.excel.misc
|
|||
|
|||
solution to solver's error.
Hi all,
Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. Don S wrote: Excel 2007 Solver Internal Error When Generating Answer Report 06-Jul-07 Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. Previous Posts In This Thread: On Friday, July 06, 2007 5:24 PM Don S wrote: Excel 2007 Solver Internal Error When Generating Answer Report Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. On Sunday, August 26, 2007 11:52 PM MS wrote: Hi Don,I am having the exact same problem???have you found a solution for it? Hi Don, I am having the exact same problem???have you found a solution for it? Thanks for your help, MSM "Don S." wrote: On Monday, August 27, 2007 12:36 PM Don wrote: MSM<No. I still have the problem. MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: On Monday, August 27, 2007 2:08 PM Dana DeLouis wrote: Just throwing this out... Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 2:44 PM Don wrote: Dana,I thought I had tried that, but I will try it again. Thanks.Don S. Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 3:21 PM Dana DeLouis wrote: Don. I was about to say I haven't seen this with xl 2007. Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 4:54 PM Don wrote: Hi Dana,That is strange and I would really like to adopt that as a workaround, Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 5:09 PM Dana DeLouis wrote: Hi. Ok.1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor.2. Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Tuesday, August 28, 2007 5:22 PM Don wrote: First, thaank you for your help. First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: On Tuesday, August 28, 2007 6:19 PM Dana DeLouis wrote: Hi. Glad it worked. I am not sure why the corruption. Hi. Glad it worked. I am not sure why the corruption. I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Wednesday, August 29, 2007 7:54 PM Don wrote: Dana,Sorry to bother you again. Dana, Sorry to bother you again. Everything worked ok with your 1st S/R yesterday, but today, trying it on a new spreedsheet, things aren't working. When I do your Step 4, there is no Solver in the list. I have tried it several times. I am doing something wrong, but I don't know what. TIA Don S. "Dana DeLouis" wrote: On Wednesday, August 29, 2007 9:37 PM Dana DeLouis wrote: Excel 2007 Solver Internal Error When Generating Answer Report Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip On Saturday, September 01, 2007 10:46 AM Don wrote: Dana,Again thanks a lot. Dana, Again thanks a lot. Sorry for being slow to respond but I have had internet problems the last two days. I have not tried your latest suggestion, but will shortly. Take care, Don "Dana DeLouis" wrote: On Sunday, September 02, 2007 6:04 PM farac wrote: I'm having the same problem with Excel 2007. I'm having the same problem with Excel 2007. Although I haven't found a permanent solution, I have found a solution that seems easier than opening VBA everytime. If you un-add-in solver, then add solver back in, it seems to work fine and I get no error when I produce the reports. Considering I don't know much about VBA either, this seems easier, and may even be faster. You still have to do it everytime you open a new file though. On Thursday, October 11, 2007 5:46 AM Chri wrote: I have a problem related to solver for which I discovered the same solution I have a problem related to solver for which I discovered the same solution independently. I can't open a particular spreadsheet that uses solver without it crashing. (I have recreated the spreadsheet from scratch and the new one also crashes.) If after opening Excel I first remove Solver from the list of add-ins, then put it back, I can open the spreadsheet without any problem. This is with Excel 2007 in Vista. The spreadsheet loads a small table from an Access database and runs solver from VB code for each record in the table. Automatic calculation is off, so it shouldn't be doing anything when I open it. On Saturday, February 07, 2009 12:42 PM Kunal wrote: Excel Solver Internal Error You have to create a macro in the personal workbook and reference it back to the Solver add-in for it to work. Directions:- 1) Open a blank Excel Workbook 2) Un-install solver add in (Go to excel options, add-ins, at the bottom you'll Manage: with a drop down list, select "Excel Add-ins" in that list and click on the "Go..." button. From there you can uncheck the solver add in and click ok 3) Get back to your worksheet and press Alt+F11 to get into Visual Basic. 4) If project explorer on the right side is not displayed, press Ctrl+R to display it. 5) Find "VBAProject (PERSONAL.XLSB) and insert a new module under the "Modules" Folder 6) Enter the following code into the module:- Sub SolverFix() Application.Run "Solver.xlam!Auto_Open" End Sub 7) Hit F5 and to ensure that there are no bugs in the code. 8) Once the code runs without any issues,click anywhere on the code and go to the Tools -- References menu 9) In the references window, click on "Browse" on the right side. 10) In the drop down list for "Files of type" select - "Microsoft Office Excel Files". Then navigate yourself to the folder where the solver add-in is kept (Typically it'll be Program Files -- Microsoft Office -- Office12 -- Solver) and select the "SOLVER.xlam" file 11) Once you have returned to the References window, and you see SOLVER in the list of "Available References" and you have made sure it is checked, click "OK" 12) Save the VBA project, save the workbook and exit excel. 13) Restart excel and when you run solver, reports should run with no errors. On Saturday, September 12, 2009 8:00 PM Patrick Paschall wrote: Solver: an unexpected.... You all Rock! Was having the same issue as Don. I joined the egghead cafe after this post helped me. I know some high level coding but no VB. Entered the scrept in the module that Dana provided, ref EggHeadCafe - Software Developer Portal of Choice Custom Sorting With IComparable and IComparer http://www.eggheadcafe.com/tutorials...ith-icomp.aspx |
#17
Posted to microsoft.public.excel.misc
|
|||
|
|||
thank you!!!!!!!!
kranthikiran penem,
THANK YOU!!! That worked perfect! I've been fooling with this error for over 3 days! kranthikiran penem wrote: solution to solver's error. 23-Nov-09 Hi all, Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. Previous Posts In This Thread: On Friday, July 06, 2007 5:24 PM Don S wrote: Excel 2007 Solver Internal Error When Generating Answer Report Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. On Sunday, August 26, 2007 11:52 PM MS wrote: Hi Don,I am having the exact same problem???have you found a solution for it? Hi Don, I am having the exact same problem???have you found a solution for it? Thanks for your help, MSM "Don S." wrote: On Monday, August 27, 2007 12:36 PM Don wrote: MSM<No. I still have the problem. MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: On Monday, August 27, 2007 2:08 PM Dana DeLouis wrote: Just throwing this out... Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 2:44 PM Don wrote: Dana,I thought I had tried that, but I will try it again. Thanks.Don S. Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 3:21 PM Dana DeLouis wrote: Don. I was about to say I haven't seen this with xl 2007. Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 4:54 PM Don wrote: Hi Dana,That is strange and I would really like to adopt that as a workaround, Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 5:09 PM Dana DeLouis wrote: Hi. Ok.1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor.2. Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Tuesday, August 28, 2007 5:22 PM Don wrote: First, thaank you for your help. First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: On Tuesday, August 28, 2007 6:19 PM Dana DeLouis wrote: Hi. Glad it worked. I am not sure why the corruption. Hi. Glad it worked. I am not sure why the corruption. I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Wednesday, August 29, 2007 7:54 PM Don wrote: Dana,Sorry to bother you again. Dana, Sorry to bother you again. Everything worked ok with your 1st S/R yesterday, but today, trying it on a new spreedsheet, things aren't working. When I do your Step 4, there is no Solver in the list. I have tried it several times. I am doing something wrong, but I don't know what. TIA Don S. "Dana DeLouis" wrote: On Wednesday, August 29, 2007 9:37 PM Dana DeLouis wrote: Excel 2007 Solver Internal Error When Generating Answer Report Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip On Saturday, September 01, 2007 10:46 AM Don wrote: Dana,Again thanks a lot. Dana, Again thanks a lot. Sorry for being slow to respond but I have had internet problems the last two days. I have not tried your latest suggestion, but will shortly. Take care, Don "Dana DeLouis" wrote: On Sunday, September 02, 2007 6:04 PM farac wrote: I'm having the same problem with Excel 2007. I'm having the same problem with Excel 2007. Although I haven't found a permanent solution, I have found a solution that seems easier than opening VBA everytime. If you un-add-in solver, then add solver back in, it seems to work fine and I get no error when I produce the reports. Considering I don't know much about VBA either, this seems easier, and may even be faster. You still have to do it everytime you open a new file though. On Thursday, October 11, 2007 5:46 AM Chri wrote: I have a problem related to solver for which I discovered the same solution I have a problem related to solver for which I discovered the same solution independently. I can't open a particular spreadsheet that uses solver without it crashing. (I have recreated the spreadsheet from scratch and the new one also crashes.) If after opening Excel I first remove Solver from the list of add-ins, then put it back, I can open the spreadsheet without any problem. This is with Excel 2007 in Vista. The spreadsheet loads a small table from an Access database and runs solver from VB code for each record in the table. Automatic calculation is off, so it shouldn't be doing anything when I open it. On Saturday, February 07, 2009 12:42 PM Kunal wrote: Excel Solver Internal Error You have to create a macro in the personal workbook and reference it back to the Solver add-in for it to work. Directions:- 1) Open a blank Excel Workbook 2) Un-install solver add in (Go to excel options, add-ins, at the bottom you'll Manage: with a drop down list, select "Excel Add-ins" in that list and click on the "Go..." button. From there you can uncheck the solver add in and click ok 3) Get back to your worksheet and press Alt+F11 to get into Visual Basic. 4) If project explorer on the right side is not displayed, press Ctrl+R to display it. 5) Find "VBAProject (PERSONAL.XLSB) and insert a new module under the "Modules" Folder 6) Enter the following code into the module:- Sub SolverFix() Application.Run "Solver.xlam!Auto_Open" End Sub 7) Hit F5 and to ensure that there are no bugs in the code. 8) Once the code runs without any issues,click anywhere on the code and go to the Tools -- References menu 9) In the references window, click on "Browse" on the right side. 10) In the drop down list for "Files of type" select - "Microsoft Office Excel Files". Then navigate yourself to the folder where the solver add-in is kept (Typically it'll be Program Files -- Microsoft Office -- Office12 -- Solver) and select the "SOLVER.xlam" file 11) Once you have returned to the References window, and you see SOLVER in the list of "Available References" and you have made sure it is checked, click "OK" 12) Save the VBA project, save the workbook and exit excel. 13) Restart excel and when you run solver, reports should run with no errors. On Saturday, September 12, 2009 8:00 PM Patrick Paschall wrote: Solver: an unexpected.... You all Rock! Was having the same issue as Don. I joined the egghead cafe after this post helped me. I know some high level coding but no VB. Entered the scrept in the module that Dana provided, ref On Monday, November 23, 2009 1:47 AM kranthikiran penem wrote: solution to solver's error. Hi all, Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. Submitted via EggHeadCafe - Software Developer Portal of Choice More Fun with Fluent NHibernate Automapping http://www.eggheadcafe.com/tutorials...uent-nhib.aspx |
#18
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel 2007 Solver Internal Error When Generating Answer Report
excel 2007 solver internal error when generating answer report
On Friday, July 06, 2007 5:24 PM Don S wrote: Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. On Sunday, August 26, 2007 11:52 PM MS wrote: Hi Don, I am having the exact same problem€¦have you found a solution for it? Thanks for your help, MSM "Don S." wrote: On Monday, August 27, 2007 12:36 PM Don wrote: MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: On Monday, August 27, 2007 2:08 PM Dana DeLouis wrote: Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 2:44 PM Don wrote: Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 3:21 PM Dana DeLouis wrote: Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 4:54 PM Don wrote: Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 5:09 PM Dana DeLouis wrote: Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Tuesday, August 28, 2007 5:22 PM Don wrote: First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: On Tuesday, August 28, 2007 6:19 PM Dana DeLouis wrote: Hi. Glad it worked. I am not sure why the corruption. I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Wednesday, August 29, 2007 7:54 PM Don wrote: Dana, Sorry to bother you again. Everything worked ok with your 1st S/R yesterday, but today, trying it on a new spreedsheet, things aren't working. When I do your Step 4, there is no Solver in the list. I have tried it several times. I am doing something wrong, but I don't know what. TIA Don S. "Dana DeLouis" wrote: On Wednesday, August 29, 2007 9:37 PM Dana DeLouis wrote: Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip On Saturday, September 01, 2007 10:46 AM Don wrote: Dana, Again thanks a lot. Sorry for being slow to respond but I have had internet problems the last two days. I have not tried your latest suggestion, but will shortly. Take care, Don "Dana DeLouis" wrote: On Sunday, September 02, 2007 6:04 PM farac wrote: I'm having the same problem with Excel 2007. Although I haven't found a permanent solution, I have found a solution that seems easier than opening VBA everytime. If you un-add-in solver, then add solver back in, it seems to work fine and I get no error when I produce the reports. Considering I don't know much about VBA either, this seems easier, and may even be faster. You still have to do it everytime you open a new file though. On Thursday, October 11, 2007 5:46 AM Chri wrote: I have a problem related to solver for which I discovered the same solution independently. I can't open a particular spreadsheet that uses solver without it crashing. (I have recreated the spreadsheet from scratch and the new one also crashes.) If after opening Excel I first remove Solver from the list of add-ins, then put it back, I can open the spreadsheet without any problem. This is with Excel 2007 in Vista. The spreadsheet loads a small table from an Access database and runs solver from VB code for each record in the table. Automatic calculation is off, so it shouldn't be doing anything when I open it. On Saturday, February 07, 2009 12:42 PM Kunal wrote: You have to create a macro in the personal workbook and reference it back to the Solver add-in for it to work. Directions:- 1) Open a blank Excel Workbook 2) Un-install solver add in (Go to excel options, add-ins, at the bottom you'll Manage: with a drop down list, select "Excel Add-ins" in that list and click on the "Go..." button. From there you can uncheck the solver add in and click ok 3) Get back to your worksheet and press Alt+F11 to get into Visual Basic. 4) If project explorer on the right side is not displayed, press Ctrl+R to display it. 5) Find "VBAProject (PERSONAL.XLSB) and insert a new module under the "Modules" Folder 6) Enter the following code into the module:- Sub SolverFix() Application.Run "Solver.xlam!Auto_Open" End Sub 7) Hit F5 and to ensure that there are no bugs in the code. 8) Once the code runs without any issues,click anywhere on the code and go to the Tools -- References menu 9) In the references window, click on "Browse" on the right side. 10) In the drop down list for "Files of type" select - "Microsoft Office Excel Files". Then navigate yourself to the folder where the solver add-in is kept (Typically it'll be Program Files -- Microsoft Office -- Office12 -- Solver) and select the "SOLVER.xlam" file 11) Once you have returned to the References window, and you see SOLVER in the list of "Available References" and you have made sure it is checked, click "OK" 12) Save the VBA project, save the workbook and exit excel. 13) Restart excel and when you run solver, reports should run with no errors. On Saturday, September 12, 2009 8:00 PM Patrick Paschall wrote: You all Rock! Was having the same issue as Don. I joined the egghead cafe after this post helped me. I know some high level coding but no VB. Entered the scrept in the module that Dana provided, ref On Monday, November 23, 2009 1:47 AM kranthikiran penem wrote: Hi all, Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. On Monday, March 08, 2010 6:32 PM Jessica Rose wrote: kranthikiran penem, THANK YOU!!! That worked perfect! I've been fooling with this error for over 3 days! |
#19
Posted to microsoft.public.excel.misc
|
|||
|
|||
thank you!!!!!!!!
On Tuesday, March 9, 2010 5:02:38 AM UTC+5:30, Jessica Rose wrote:
kranthikiran penem, THANK YOU!!! That worked perfect! I've been fooling with this error for over 3 days! thanx man mind saver kranthikiran penem wrote: solution to solver's error. 23-Nov-09 Hi all, Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. Previous Posts In This Thread: On Friday, July 06, 2007 5:24 PM Don S wrote: Excel 2007 Solver Internal Error When Generating Answer Report Hello, I am running Excel 2007 under Vista. After running Solver, it reaches a solution. When I try to save either an Answer Report or a Sensitivity Report, the following message appears "Solver: An unexpected internal error occurred, or the available memory was exhausted". Opening the same spreadsheet in Excell 2003 running under Win XP works properly. Researching the problem, I found reference to the same error wriiten in October 2000 in Article 173393. However, the workaround does not seem to work. There are no merged cells on my worksheet, and there are no other sheets with the name Answer Report etc as discussed in the srticle. Since it works as it is supposed to in Excel 2003/Win XP, what do I do or what am I missing? Hopefully, this is the right group. TIA Don S. On Sunday, August 26, 2007 11:52 PM MS wrote: Hi Don,I am having the exact same problem???have you found a solution for it? Hi Don, I am having the exact same problem???have you found a solution for it? Thanks for your help, MSM "Don S." wrote: On Monday, August 27, 2007 12:36 PM Don wrote: MSM<No. I still have the problem. MSM< No. I still have the problem. I am not sure where else to look for the answer. I will be nedding this capability for a course I teach that is coming up very soon now. If you find an answer independent of this thread, I would really appreciate a note here. I will do the same. I can't believe we are the only two that are being affected by this!? Don S. "MSM" wrote: On Monday, August 27, 2007 2:08 PM Dana DeLouis wrote: Just throwing this out... Just throwing this out... If you have a space in the workbook name, experiment by renaming your workbook without any spaces. Also, don't call your subroutine "Main" if it applies. Again...just some ideas. -- Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 2:44 PM Don wrote: Dana,I thought I had tried that, but I will try it again. Thanks.Don S. Dana, I thought I had tried that, but I will try it again. Thanks. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 3:21 PM Dana DeLouis wrote: Don. I was about to say I haven't seen this with xl 2007. Don. I was about to say I haven't seen this with xl 2007. However, I've not used it much with xl 2007 yet. I just loaded a very basic / simple Solver model, solved it, and asked for an Answer report. I also got the "Internal Error" message. I tried all combinations of Reports, and got the same error. With the Solver dialog box closed, I ran the following vba macro. Weird...it generated all 3 reports with no problem. Sub SolverRunOnly() SolverSolve True SolverFinish 1, Array(1, 2, 3) End Sub I cleaned up the worksheets, deleted reports, and Saved the workbook. When I re-opened the workbook, I had no further problems. Thinking that Solver's main internal sheet might be corrupt, I ran the following on another Solver workbook, and it seemed to help. Sub Solver_Reset_Sheet() SOLVER.Auto_open End Sub I believe yoiu can also run the following as I think internally it does the same thing. (The code is a lttle weird, and probably a leftover from years ago...) Sub Solver_Reset_Sheet_Old() Dim B As Boolean ' A test, but actually doesn't call procedure....weird. B = SOLVER.AutoOpened End Sub Again, just throwing out some ideas. I'd be interested to hear any feedback. :0 -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Monday, August 27, 2007 4:54 PM Don wrote: Hi Dana,That is strange and I would really like to adopt that as a workaround, Hi Dana, That is strange and I would really like to adopt that as a workaround, but I know absolutely nothing about recording, writing or using vba macros. Could you walk me throught it or point me to a reference that I could use? I would realy appreciate any help beyonfd he great help you have been with this post. Don S. "Dana DeLouis" wrote: On Monday, August 27, 2007 5:09 PM Dana DeLouis wrote: Hi. Ok.1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor.2. Hi. Ok. 1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor. 2. Vba Editor Menu...Insert | Module 3. Paste a copy of Code into this module. 4. Vba Editor Menu... Tools | References... and select "Solver" (This allows Solver to run) 5. Select anywhere in the code, and Hit F5 (Runs the Macro) Save workbook. This may not work, but... who knows. :~ There are certain things in Solver that require no spaces in the workbook name, that's why I suggested it earlier. Hopefully, this will spark an interest in learning Vba. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Tuesday, August 28, 2007 5:22 PM Don wrote: First, thaank you for your help. First, thaank you for your help. I loaded your first subroutine and it worked as you described. After generating the reports, I saved the spreadsheet, brought it back in and then was able to resolve the problem and re-generate the reports. I brought in a new spreadsheet, ran Solver and the error was back as I expected. So I loaded/ran your first subroutine and it fixed up that spreadsheet. So as of right now, I see how to fix the problem, one spreadsheet at a time, which way ahead of where I was. I am not sure what or why your other subroutines are doing. I did not try them. Ideally, it would be nice to run a subroutine once per session and then at least for that session of Excel all of the spreadsheets used would run properly. Is that what your other subroutines are doing? BTW I did hacve to lower the security level in order to run the subroutine on the second spreadsheet. Don S. "Dana DeLouis" wrote: On Tuesday, August 28, 2007 6:19 PM Dana DeLouis wrote: Hi. Glad it worked. I am not sure why the corruption. Hi. Glad it worked. I am not sure why the corruption. I have been working a little on trying to figure out why my subroutine that loads the Solver Add-Inn no longer works. I cannot figure it out. Again, it's a Excel 2007 issue. If you are interested in Macros, you may be interested in the following: You can have a "Digital Signature" that allows you to put the security level back to high. Go to C:\Program Files\Microsoft Office\Office12 And run. SELFCERT.EXE Type your name in the box. When working on a workbook with Macros, go to the vba editor and select: Tools | Digital Signatures and choose your name. Save & close your workbook. You should now be able to re-open your workbook without the security message. -- HTH :) Dana DeLouis Windows XP & Excel 2007 "Don S." wrote in message ... On Wednesday, August 29, 2007 7:54 PM Don wrote: Dana,Sorry to bother you again. Dana, Sorry to bother you again. Everything worked ok with your 1st S/R yesterday, but today, trying it on a new spreedsheet, things aren't working. When I do your Step 4, there is no Solver in the list. I have tried it several times. I am doing something wrong, but I don't know what. TIA Don S. "Dana DeLouis" wrote: On Wednesday, August 29, 2007 9:37 PM Dana DeLouis wrote: Excel 2007 Solver Internal Error When Generating Answer Report Ref: 4. Vba Editor Menu... Tools | References... and select "Solver" Hi. When one starts a new session of Excel, and you want to write Solver macros, here's what you do first. From the worksheet, select the Solver Analysis Tookpak. This loads Solver, and makes it visible for the vba editor. Now... go to vba, Menu, and do Tools | Reference, and select "Solver." Solver should now show up in the list. I've have a problem setting this up automatically via vba with 2007, so I'm sure there's a issue here I am not familiar with yet. Anyway, hope this helps. -- Dana DeLouis <snip On Saturday, September 01, 2007 10:46 AM Don wrote: Dana,Again thanks a lot. Dana, Again thanks a lot. Sorry for being slow to respond but I have had internet problems the last two days. I have not tried your latest suggestion, but will shortly. Take care, Don "Dana DeLouis" wrote: On Sunday, September 02, 2007 6:04 PM farac wrote: I'm having the same problem with Excel 2007. I'm having the same problem with Excel 2007. Although I haven't found a permanent solution, I have found a solution that seems easier than opening VBA everytime. If you un-add-in solver, then add solver back in, it seems to work fine and I get no error when I produce the reports. Considering I don't know much about VBA either, this seems easier, and may even be faster. You still have to do it everytime you open a new file though. On Thursday, October 11, 2007 5:46 AM Chri wrote: I have a problem related to solver for which I discovered the same solution I have a problem related to solver for which I discovered the same solution independently. I can't open a particular spreadsheet that uses solver without it crashing. (I have recreated the spreadsheet from scratch and the new one also crashes.) If after opening Excel I first remove Solver from the list of add-ins, then put it back, I can open the spreadsheet without any problem. This is with Excel 2007 in Vista. The spreadsheet loads a small table from an Access database and runs solver from VB code for each record in the table. Automatic calculation is off, so it shouldn't be doing anything when I open it. On Saturday, February 07, 2009 12:42 PM Kunal wrote: Excel Solver Internal Error You have to create a macro in the personal workbook and reference it back to the Solver add-in for it to work. Directions:- 1) Open a blank Excel Workbook 2) Un-install solver add in (Go to excel options, add-ins, at the bottom you'll Manage: with a drop down list, select "Excel Add-ins" in that list and click on the "Go..." button. From there you can uncheck the solver add in and click ok 3) Get back to your worksheet and press Alt+F11 to get into Visual Basic. 4) If project explorer on the right side is not displayed, press Ctrl+R to display it. 5) Find "VBAProject (PERSONAL.XLSB) and insert a new module under the "Modules" Folder 6) Enter the following code into the module:- Sub SolverFix() Application.Run "Solver.xlam!Auto_Open" End Sub 7) Hit F5 and to ensure that there are no bugs in the code. 8) Once the code runs without any issues,click anywhere on the code and go to the Tools -- References menu 9) In the references window, click on "Browse" on the right side. 10) In the drop down list for "Files of type" select - "Microsoft Office Excel Files". Then navigate yourself to the folder where the solver add-in is kept (Typically it'll be Program Files -- Microsoft Office -- Office12 -- Solver) and select the "SOLVER.xlam" file 11) Once you have returned to the References window, and you see SOLVER in the list of "Available References" and you have made sure it is checked, click "OK" 12) Save the VBA project, save the workbook and exit excel. 13) Restart excel and when you run solver, reports should run with no errors. On Saturday, September 12, 2009 8:00 PM Patrick Paschall wrote: Solver: an unexpected.... You all Rock! Was having the same issue as Don. I joined the egghead cafe after this post helped me. I know some high level coding but no VB. Entered the scrept in the module that Dana provided, ref On Monday, November 23, 2009 1:47 AM kranthikiran penem wrote: solution to solver's error. Hi all, Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message"BLAH BLAH"( An unexpected internal error occurred, or the available memory was exhausted".)" 1.open the excel and save(ctrl+s) your file(current document). 2. open the solver give the input(tgt. cell, deci. var. etc.) 3.hit the solver button. 4. The solver displays solution. 5.Click "OK" (don't open the answer,sensitivity or limit report). 6.close the solver dialog box. 7.Open the solver dialog box and hit "solve" button. 8.Then try to open the answer,sensitivity and limit report. It works 5n. Submitted via EggHeadCafe - Software Developer Portal of Choice More Fun with Fluent NHibernate Automapping http://www.eggheadcafe.com/tutorials...uent-nhib.aspx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Where is Solver in Excel 2007? | Excel Discussion (Misc queries) | |||
Generating a report | Excel Worksheet Functions | |||
Interesting Solver problem (Solver encounters an error) | Excel Discussion (Misc queries) | |||
Generating a report list and statistic worksheet in Excel from other workbooks | Excel Discussion (Misc queries) | |||
Excel solver sensitivity report has empty shadow prices column? | Excel Discussion (Misc queries) |