Hi all
I have a question about the putexcel command.
When I run the code, sometimes I get the following error message:
file C:\...\reports.xls could not be saved
r(603)
Now, my code is something like the following:
foreach ctr in `countries' {
foreach yrs in `years' {
putexcel set "${path_reports}\report_`ctr'_`yrs'.xls", sheet("reports_`ctr'_`yrs'") replace
putexcel A1=("title A1")
[and so on and so forth]
}
}
The "stage" thing is that sometimes the codes works without problems, and sometimes it stops with the above-mentioned error message.
What am I doing in the wrong way?
Thank you all in advance!!
0 Response to putexcel command - error
Post a Comment