Page 1 of 1
Export data to existing excel file
Posted: Thu May 10, 2012 8:43 am
by johansamuelsson
Hi
At our institute (NIER,
http://www.konj.se) we are now changing from Aremos to Eviews for calculations of macroeconomic forecasts. Very often we combine heavier computation with excel files that sometimes are a better interface. We have therefore a great need to export data to existing excel files.
As we have noted previously it works fine to load data into existing excel file via VBA. But it requires a relatively good knowledge of VBA coding.
As an alternative, it would be highly desirable to be able to export data directly from a workfile to an existing Excel file via code in Eviews.
Are there any plans for this? Thanks in advance.
Johan
Re: Export data to existing excel file
Posted: Thu May 10, 2012 8:47 am
by EViews Gareth
It is extremely high up our list.
Re: Export data to existing excel file
Posted: Thu May 10, 2012 10:31 am
by johansamuelsson
Great!
Re: Export data to existing excel file
Posted: Wed Sep 05, 2012 10:38 am
by johansamuelsson
It is extremely high up our list.
What about this issue?
Re: Export data to existing excel file
Posted: Wed Sep 05, 2012 10:57 am
by EViews Gareth
It is still extremely high on our list, and should be implemented in the next version of EViews.
Re: Export data to existing excel file
Posted: Wed Sep 12, 2012 12:56 am
by paues
Do you by "next version" mean EViews 7.3 or EViews 8?
Re: Export data to existing excel file
Posted: Wed Sep 12, 2012 7:03 am
by EViews Gareth
8
Re: Export data to existing excel file
Posted: Thu Feb 21, 2013 1:43 pm
by victor.alves
Is that already possible on Eviews 8 Beta?
Thanks
Re: Export data to existing excel file
Posted: Thu Feb 21, 2013 1:51 pm
by EViews Gareth
Yes
Re: Export data to existing excel file
Posted: Mon Mar 11, 2013 6:36 am
by davey87
Using EViews 8 Beta, I am trying to export data from a workfile to an exisiting Excel file using the following commands:
Code: Select all
for %a 0to4 5to9 10to14 15to19 20to24 25to29 30to34 35to39 40to44 45to49 50to54 55to59 60to64 65to69 70to74 75to79 80to84 85to89 90plus
wfsave(type=excelxml, mode=update) range="Sheet1!d54" byrow popm.xlsm @keep p{%a}mz1m
next
However when I run it I am getting an Error Message that says:
Syntax error: unexpected character '.' in file option settings in "WFSAVE(TYPE=EXCELXML, MODE=UPDATE) RANGE="SHEET1!D54" BYROW POPM.XLSM @KEEP P0TO4MZ1M"
Any idea why this may be happening?
Re: Export data to existing excel file
Posted: Mon Mar 11, 2013 8:21 am
by EViews Gareth
Excel file name goes before the Range= statement.
Re: Export data to existing excel file
Posted: Mon Mar 11, 2013 9:11 am
by davey87
Ok thanks. But just so you guys are aware, in the EViews 8 Beta Documentation examples under "wfsave", it is the other way around. The example is provided like this:
Code: Select all
wfsave(type=excelxml, mode=update) range=”Sheet2!a1” byrow
macro.xlsm @keep gdp unemp
Re: Export data to existing excel file
Posted: Mon Mar 11, 2013 9:16 am
by EViews Gareth
Yep, that's a mistake. I'll make sure it gets fixed.
Re: Export data to existing excel file
Posted: Fri Apr 05, 2013 3:32 am
by paues
Please note that the example provided by davey87 was not updated in the documentation that comes with EViews 8. Is it possible for you to update it in when you release patches?