Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: st: Re: st: Export Excel – multiple worksheets


From   Nick Cox <[email protected]>
To   [email protected]
Subject   st: Re: st: Re: st: Export Excel – multiple worksheets
Date   Tue, 23 Oct 2012 09:54:14 +0100

I think Daniel meant to write

... , sh("Worksheet`++i'")

The macro reference should be    `++i'

Nick

On Tue, Oct 23, 2012 at 9:49 AM, daniel klein
<[email protected]> wrote:
> Kathrin,
>
> try something like
>
> loc i 0
> foreach stub in GDP EMP [...] {
>     export excel Industry `stub'_2000-`stub'_2010 using foo.xls
> ,sh("`Worksheet++i'")
> }
>
> assuming the correct order of variables.
>
> A minor side issue for StataCorp. I noticed that the indicated
> abbreviation in the help file for -import excel- and -export excel-
> result in an syntax error. Typing
>
> import exc using foo.xls
>
> imports foo.xls, but returns error code 198 export unknown subcommand "exc"
>
>
> I want to use the export excel feature and I am unsure about the
> syntax. I would like to export variables into multiple Excel
> worksheets.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index