Colleagues,
Please see attached document that discuss perhaps two bugs that I have found with the Vensim command GET XLS SUBSCRIPT?
Or perhaps I am doing something incorrectly.
Thank you for any advice.
Bugs with GET XLS SUBSCRIPT?
Re: Bugs with GET XLS SUBSCRIPT?
Note this warning in the help for the function:
Thanks for the good documentation - we'll look into this - I've had some annoyances with the file pointing behavior as well.
The empty ' ' entry for the last cell argument might be the problem.Lastcell can be left blank '' with GET DIRECT SUBSCRIPTS but this will generally not work with GET XLS SUBSCRIPTS.
Thanks for the good documentation - we'll look into this - I've had some annoyances with the file pointing behavior as well.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Bugs with GET XLS SUBSCRIPT?
TOMFID thanks for the reply.
I had noted that but at the same time on
http://www.vensim.com/documentation/ind ... script.htm
it states
"You can substitute named Excel ranges for 'firstcell'. In this case 'lastcell' is ignored."
Since I am using a named range in Excel for firstcell, hence, I kept last cell blank with '' since anyways it is ignored.
The bizarre thing is that all works just fine if one runs Vensim manually but the moment you employ automated script the issue appears.
All the best
I had noted that but at the same time on
http://www.vensim.com/documentation/ind ... script.htm
it states
"You can substitute named Excel ranges for 'firstcell'. In this case 'lastcell' is ignored."
Since I am using a named range in Excel for firstcell, hence, I kept last cell blank with '' since anyways it is ignored.
The bizarre thing is that all works just fine if one runs Vensim manually but the moment you employ automated script the issue appears.
All the best
Re: Bugs with GET XLS SUBSCRIPT?
Right - so I guess your 'Vensim_PYEAR' points to a range, not a single cell?
I think we'll have to look at the code to see what's going on.
Does your Excel procedure use DDE or the DLL?
I think we'll have to look at the code to see what's going on.
Does your Excel procedure use DDE or the DLL?
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Bugs with GET XLS SUBSCRIPT?
Yes 'Vensim_PYEAR' points to a range, not a single cell.
Excel procedure uses DDE.
All the best
Excel procedure uses DDE.
All the best