Bookmark and Share

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

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

Re: st: RE: Writing to large Excel files

From   David Epstein <>
Subject   Re: st: RE: Writing to large Excel files
Date   Tue, 29 Jan 2013 14:56:31 -0500

Thanks David R.,

I agree on the Stata 12 memory management, which is set to . by
default now. I just didn't know what else to try.

And I know I can outsheet, the data, but the point is that I already
have an Excel file set up, with lots of conditional formatting, tables
that make use of the data I'm downloading, etc. That's why I was so
excited by the new sheet(), cell() and sheetmodify options in export
excel, so that I could just plunk down the data into the existing
sheet. I may in the end have to export the data first, say into its
own Excel sheet, and then do an Excel-to-Excel importation of the
data, but that would be so wasteful....

David E.

On Tue, Jan 29, 2013 at 2:47 PM, David Radwin <> wrote:
> David,
> This is not actually a solution, but as a workaround you could create a
> tab- or comma-separated values text file using -outsheet-.
> Also, if you are using Stata 12, you shouldn't have to adjust the memory.
> David
> --
> David Radwin
> Senior Research Associate
> MPR Associates, Inc.
> 2150 Shattuck Ave., Suite 800
> Berkeley, CA 94704
> Phone: 510-849-4942
> Fax: 510-849-0794
>> -----Original Message-----
>> From: [mailto:owner-
>>] On Behalf Of David Epstein
>> Sent: Tuesday, January 29, 2013 11:15 AM
>> To:
>> Subject: st: Writing to large Excel files
>> Dear Statalisters,
>> I have a large dataset that I want to write to an Excel file, so I was
>> excited about Stata 12's new, improved import excel/export excel
>> features. However, the file I'm writing to is ~60Mb in size, and I
>> keep getting an error "file testsheet.xlsx could not be loaded". This
>> does not happen when I try to write to a smaller, or blank excel
>> sheet, I increased Stata's memory to much more than 60Mb, and I even
>> added the undocumented "set excelxlsxlargefile on" to my code, all to
>> no avail.
>> Anyone have any ideas on how to solve this? Any help appreciated.
>> David
> *
> *   For searches and help try:
> *
> *
> *
*   For searches and help try:

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