Page 1 of 1
Exporting table to Excel
Posted: Thu Jan 08, 2009 9:07 am
by VBoykis
Hi All,
I know there are ways to export series to Excel, but is there a command that allows for the export of tables to an Excel file, something along the lines of the write (t=xls) c:\documents\file.xls t_table
Thank you.
Re: Exporting table to Excel
Posted: Thu Jan 08, 2009 9:25 am
by EViews Gareth
EViews won't save a table directly to an Excel file, but it will save it as a CSV file (which Excel will open with no problems):
tablename.save(t=csv) c:\documents\file.csv
Re: Exporting table to Excel
Posted: Mon May 17, 2010 11:10 am
by flash
Hi all,
has any imporvement been made in eviews 7 in regards to the above issue or does this continue to be the case still ?
Thanks.
Re: Exporting table to Excel
Posted: Mon May 17, 2010 11:35 am
by EViews Gareth
No change.
Re: Exporting table to Excel
Posted: Tue Nov 19, 2013 6:30 am
by Karl1
EViews won't save a table directly to an Excel file, but it will save it as a CSV file (which Excel will open with no problems):
tablename.save(t=csv) c:\documents\file.csv
The last line in the following commands did not work
modelbame.makegroup(s=m) table3b variablename1 variablename2
table3b.dtable
table3b.ddtabopts firstfreq(a) secfreq(none) display(year,7)
table3b.save(t=csv) c:\documents\table3b.csv
I get the error message "SAVE is not a valid view for TABLE3B in "DO_TABLE3B.SAVE(T=CSV) c:\documents\table3b.csv"."
Does anybody know what gets wrong here?
Re: Exporting table to Excel
Posted: Tue Nov 19, 2013 8:56 am
by EViews Gareth
Your object, table3b, is not a table. It is a group. You'll need to freeze it into a table before saving.
Re: Exporting table to Excel
Posted: Tue Nov 19, 2013 9:39 am
by Karl1
Seems like the freeze command freezes the raw data of the group, which is quaterly, and not the formated data, which is annual.
Is it possible to freeze the group as it is viewed?
Re: Exporting table to Excel
Posted: Tue Nov 19, 2013 9:40 am
by EViews Gareth
Code: Select all
table3b.ddtabopts firstfreq(a) secfreq(none) display(year,7)
freeze(tab1) table3b.dtable
Re: Exporting table to Excel
Posted: Wed Nov 20, 2013 1:56 am
by Karl1
Nice! Thanks!
Re: Exporting table to Excel
Posted: Wed Aug 10, 2016 8:00 am
by nevernotnone
Any update on this? I have a program that generates a number of summary tables that I would like to be able to write as multiple sheets within a single excel file.
Re: Exporting table to Excel
Posted: Wed Aug 10, 2016 8:50 am
by EViews Gareth
No.