input from and output to excel

Use this forum to post Vensim related questions.
Post Reply
stevenijones
Junior Member
Posts: 3
Joined: Mon Sep 24, 2007 10:22 am

input from and output to excel

Post by stevenijones »

Hi

I've been having some problems with input and output from excel. I've got a model which reads in data from excel using get xls constants. It works fine.

I've also got some excel VB which will run the model and exports the data from vdf to xls. It works fine too, but when the model runs from excel (happens to be the same sheet as the input data) it does not pick up the new data to run the model with.

I've attached the model and spreadsheet.

Appreciate any help.

Steve
Attachments
io model.vmf
(12.59 KiB) Downloaded 268 times
stevenijones
Junior Member
Posts: 3
Joined: Mon Sep 24, 2007 10:22 am

excel sheet

Post by stevenijones »

excel sheet
Attachments
io test.xls
(48.5 KiB) Downloaded 270 times
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

I am guessing that you are using an older release of Vensim. GET XLS CONSTANTS used to use DDE to communicate with Excel and this doesn't work when called from Excel. Try updating to 5.7 and see if the problem persists.
stevenijones
Junior Member
Posts: 3
Joined: Mon Sep 24, 2007 10:22 am

Post by stevenijones »

Thanks Bob,

Stopped me banging my head against what could be a brick wall! I've asked my management whether upgrading is possible and for now I am using a hyperlink in excel to a command script file which works fine but isn't quite as flexible as I can't change the names of the run, save list and excel output without editing the text file.

Anybody got another way of doing this?
Post Reply