Excel 2007 Solver Internal Error When Generating Answer Report

G

Guest

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.
 
G

Guest

Hi Don,

I am having the exact same problem…have you found a solution for it?

Thanks for your help,
MSM
 
G

Guest

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.
 
D

Dana DeLouis

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.
 
D

Dana DeLouis

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
 
G

Guest

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.
 
D

Dana DeLouis

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.
 
G

Guest

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.
 
D

Dana DeLouis

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.
 
G

Guest

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.
 
D

Dana DeLouis

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.
 
G

Guest

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
 
F

faraca

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.
 
G

Guest

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.
 
K

kranthikiran penem

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:

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.

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
MS

:

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
:

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 DeLoui
Windows XP & Excel 200


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

:

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



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.
:

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



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.

:

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



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.

:

Re: 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>

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

:

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.

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.

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.

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/tutorial...9-aa2edb23422e/custom-sorting-with-icomp.aspx
 
J

Jessica Rose

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:

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.

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
MS

:

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
:

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 DeLoui
Windows XP & Excel 200


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

:

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 Tru
SolverFinish 1, Array(1, 2, 3
End Su

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



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.
:

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



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.

:

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



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.

:

Re: 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>

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

:

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.

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.

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.

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

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/tutorial...9-81ee42171b00/more-fun-with-fluent-nhib.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top