jobstofmoravia
New Member
- Joined
- May 3, 2011
- Messages
- 4
Hi All,
I've been struggling for a few days to automate solver runs in a spreadsheet in a way that will let users other than myself use them correctly.
I have things working nicely on my own machine, but inevitably when the workbook gets emailed to somebody issues happen and it all falls apart.
The main issue seems to stem from not having a solver reference in VB (that which is found in tools/references in the VB editor). There are also side issues due to circular references existing in the workbook -- if I could get away with not having these I could use goalseek instead of solver, but it seems to crash and burn when it interacts with what it needs to do.
Does anyone have some code that will allow me to automatically add the reference for solver upon opening of the workbook, unhindered by the warning about circular references?
I've been struggling for a few days to automate solver runs in a spreadsheet in a way that will let users other than myself use them correctly.
I have things working nicely on my own machine, but inevitably when the workbook gets emailed to somebody issues happen and it all falls apart.
The main issue seems to stem from not having a solver reference in VB (that which is found in tools/references in the VB editor). There are also side issues due to circular references existing in the workbook -- if I could get away with not having these I could use goalseek instead of solver, but it seems to crash and burn when it interacts with what it needs to do.
Does anyone have some code that will allow me to automatically add the reference for solver upon opening of the workbook, unhindered by the warning about circular references?