Saving workfile as workbook (containing specific groups)

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

fboehlandt
Posts: 83
Joined: Thu Apr 15, 2010 3:54 am

Saving workfile as workbook (containing specific groups)

Postby fboehlandt » Thu Jul 19, 2012 3:49 am

Hi everyone,

I am struggling a little with the syntax of saving a workfile as a .xlsm (or .xls) file:

I have a workfile with five groups called group01, group02, ...

I would like to save a workbook that contains the groups only (there are other series in the workfile). Ideally, I would like to have one group per worksheet. That probably won't work so I would like to have one workbook per group. Lastly, assume that the target directory is something like C:\afolder\

Thanks in advance for your input

Regards

Florian

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Saving workfile as workbook (containing specific groups)

Postby EViews Gareth » Thu Jul 19, 2012 7:53 am

Just use:

Code: Select all

wfsave myfile1.xls @keep group01 wfsave myfile2.xls @keep group02
etc...

fboehlandt
Posts: 83
Joined: Thu Apr 15, 2010 3:54 am

Re: Saving workfile as workbook (containing specific groups)

Postby fboehlandt » Thu Jul 19, 2012 8:42 am

Okay, great. Thanks. I assume it's always the workfile that is currently open/active. Is there a way to specifiy a target destination instead of saving it to documents?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Saving workfile as workbook (containing specific groups)

Postby EViews Gareth » Thu Jul 19, 2012 8:43 am

Yes, it is the current workfile.

Code: Select all

wfsave c:\myfolder\myfile.xls

fboehlandt
Posts: 83
Joined: Thu Apr 15, 2010 3:54 am

Re: Saving workfile as workbook (containing specific groups)

Postby fboehlandt » Thu Jul 19, 2012 9:06 am

Thx, I thought as much. for some reason it doesn't like the desktop as destination but saving it to C: works just fine. great stuff!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Saving workfile as workbook (containing specific groups)

Postby EViews Gareth » Thu Jul 19, 2012 9:13 am

As usual, if there are spaces in the directory path, you'll need to surround it in quotes:

Code: Select all

wfsave "c:\my documents\myfile.xls"


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests