LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel Macro "Memory exhausted"

I try to start an Excel Macro and everytime when i started it, comes a message like that: Solver: An unexspected internal error occurred, or available memory was exhausted"

I try to start the Excel Solver Function with a macro from Labview. I use Excel 2003 and Labview 7.1.

Thx for help

Torsten
0 Kudos
Message 1 of 9
(4,915 Views)
Solver is an AddIn that is not installed in a typical Excel installation. If you attempt to run it from the menu, it will prompt that it needs to be installed. This could be what is causing this error. Run the Solver from the menu and check that it is able to run manually.

After that, check the parameters carefully to make sure that you are not giving the Solver a bad cell reference or an invalid parameter.

Michael Munroe
www.abcdef.biz
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 2 of 9
(4,906 Views)
I had the same problem when LabVIEW ran the Excel Macro with Solver (Excel 2002 or 2003 and LabVIEW 7.1).
The Maco could be run manually from MS Excel without any errors.

I guess it is the LabVIEW problem. Have you got the solution yet? Does anyone have the solution?

Thanks,
a3j
0 Kudos
Message 3 of 9
(4,856 Views)
Could someone post a small piece of code that creates this error. I have LV7.1 and Excel 2003 and I would like to take a look at it.

-Brett Burger
0 Kudos
Message 4 of 9
(4,844 Views)
Here is a piece of code to generate the error code.
0 Kudos
Message 5 of 9
(4,818 Views)
Here is a piece of code to generate the error code.
0 Kudos
Message 6 of 9
(4,811 Views)
When I downloaded the excel file it had no macros embedded. Was this a mistake, or is my antivirus doing a much better job "protecting" my computer than I thought?
0 Kudos
Message 7 of 9
(4,806 Views)
Let's try it again. For some reason, when I attached the Solver_SimpleTest.xls, the macro was gone.
0 Kudos
Message 8 of 9
(4,791 Views)
Finally, I got the problem solved. It's not the LV problem. The problem is in Excel.
"Adding one line before the Call" is the fix. Thanks all who tried to help!

Application.Run "Solver.xla!Auto_Open"
Call RunSolver("Simple")
0 Kudos
Message 9 of 9
(4,779 Views)