Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Import excel issues stata12


From   Dan Blanchette <dan_blanchette@unc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Import excel issues stata12
Date   Wed, 6 Jun 2012 13:57:21 -0400 (EDT)

I am also not able to get -import excel- to load that Excel file
until I downloaded it.

Since you are wanting to write a loop, you could use Stata's -copy- command:

 . copy "http://www.pcr.uu.se/digitalAssets/64/64466_UCDP_DyadicDataset_v12011.xls"; "C:\data\"
 . import excel using "c:\data\64466_UCDP_DyadicDataset_v12011.xls", sheet("UCDP DyadicDataset") firstrow clear

Hope this helps,
Dan Blanchette

Research Programming Services
Carolina Population Center
University of North Carolina
Chapel Hill, NC 27516 USA
Dan_Blanchette@unc.edu




*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index