Message 1 of 6
iLogic GoExcel issue

Not applicable
09-29-2016
04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm running this code to input user parameter values to a linked excel spreadsheet. When any of the values of cells B2-B6 are changed, the spreadsheet automatically runs a solver macro, which generates values in cells B19-B22.
The code works (eventually) but as the solver is running through all it's possibilities, the model is trying to regenerate each one which takes a long time.
Is there a way I can delay reading from the spreadsheet until the solver has produced the final result?
GoExcel.CellValue("3rd Party:GAS SPRING CALCULATION.xlsm", "Data Input", "B2") = casewidth GoExcel.CellValue("B3") = casedepth GoExcel.CellValue("B4") = caseheight GoExcel.CellValue("B5") = glass GoExcel.CellValue("B6") = plinthheight openangle = GoExcel.CellValue("3rd Party:GAS SPRING CALCULATION.xlsm", "Data Input", "B19") posA = GoExcel.CellValue("B20") posB = GoExcel.CellValue("B21") posC = GoExcel.CellValue("B22")
GoExcel.Save
GoExcel.Close