using/accessing different work sheets through program
Posted: Wed Aug 04, 2010 6:48 am
Hi there,
I would like to create a program that runs the same operations on different worksheets in a workfile, but I have not been able to figure out how it works.
The steps I would like to follow were the following:
1. I have used the code provided to load multiple sheets from excel into eviews and now have an eviews workfile called "data" with multiple sheets. Assume for simplicity that there are only two sheets, named "ea" and "po". Each sheet for simplicity only includes two data series each called "X" and "Y" in each sheet.
2. The main program loads "data" and is supposed to
i) regress "Y" on "X" in each sheet
ii) store the output
I have not been able to do either 2 i) or ii) in any user friendly way (i.e. the file automatically running over all sheets, having a loop, etc). Put differently, I do not know how to access different work sheets in a work file, nor how to save the resulting workfiles.
Many thanks for your help.
I would like to create a program that runs the same operations on different worksheets in a workfile, but I have not been able to figure out how it works.
The steps I would like to follow were the following:
1. I have used the code provided to load multiple sheets from excel into eviews and now have an eviews workfile called "data" with multiple sheets. Assume for simplicity that there are only two sheets, named "ea" and "po". Each sheet for simplicity only includes two data series each called "X" and "Y" in each sheet.
2. The main program loads "data" and is supposed to
i) regress "Y" on "X" in each sheet
ii) store the output
I have not been able to do either 2 i) or ii) in any user friendly way (i.e. the file automatically running over all sheets, having a loop, etc). Put differently, I do not know how to access different work sheets in a work file, nor how to save the resulting workfiles.
Many thanks for your help.