Page 1 of 1

Reading Excel data in multiple worksheets

Posted: Thu May 31, 2012 6:53 am
by Dirk
Hi all,

I have a very basic question. I need a program to read monthly data into a "monthly" worksheet and quarterly data into a "quarterly" worksheet. Then I want the progam to copy the quarterly data into the monthly worksheet to achieve an automatic frequency conversion. Can anyone tell me how to program this?

Or is there a better way to convert quarterly to monthly data with an Eviews code?

Many thanks
D.

Re: Reading Excel data in multiple worksheets

Posted: Thu May 31, 2012 7:44 am
by EViews Gareth
Use the wfopen command to open up the first sheet, then use the pageload command to open up the rest of the sheets, then use the copy command to copy from one to the other.

Or, you could just use the import command to import directly from the quarterly Excel sheet into the monthly EViews page, doing frequency conversion on the fly.

Re: Reading Excel data in multiple worksheets

Posted: Thu May 31, 2012 10:43 pm
by Dirk
Many thanks, I'll try this.