I am currently trying to write a program that involves exporting groups of variables into a MS Excel spreadsheet file. Ideally, I would like to export each group to a different sheet. With the ‘write’ command, I am able to export the groups to a single sheet in Excel; I am curious whether or not I can specify the creation of new sheets or write to already existing sheets. Here's the basic gist of my code:
Code: Select all
group scenario1 ......list of series......
group baseline .....list of series.......
smpl 2005:0 2020:4
write(t,t=xls) G:\MACRO\EconTopics\RulesofThumb\oil{%run} baseline scenario1
Thanks so much for your time.
