Hi there,
I'm trying to append a bunch of Excel files together using the following code:
However, I am getting the following error:
I do not see any file titled "~.xlsx" in the current directory. Any ideas about what's going on here and how I can get Stata to not try to bring in this file?
Thanks,
Erika
I'm trying to append a bunch of Excel files together using the following code:
Code:
local manyfiles : dir . files "*.xlsx" display `"`manyfiles'"' tempfile manydatasets foreach file of local manyfiles { import excel `"`file'"', clear capture append using "`manydatasets'" save "`manydatasets'", replace }
Code:
file ~.xlsx not found r(601);
Thanks,
Erika
Comment