全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1175 2
2020-05-12
老师布置的作业:用stata构造一个excel文件,包含n个sheet。跪求各位大佬帮忙看看[cry]在网上只能搜到打开录入读取数据,实在搜不到怎么用stata创建excel文件[cry][cry]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2020-5-13 11:21:00
1mingtian 发表于 2020-5-12 12:38
老师布置的作业:用stata构造一个excel文件,包含n个sheet。跪求各位大佬帮忙看看在网上只能搜到 ...
可以尝试<br>
export excel \"路径/filename.xls\", sheet(\"表1\") replace<br>
export excel \"路径/filename.xls\", sheet(\"表2\") <br>
export excel \"路径/filename.xls\", sheet(\"表3\") <br>
.......
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2020-5-13 15:52:22
vivid_Zheng 发表于 2020-5-13 11:21
可以尝试
export excel \"路径/filename.xls\", sheet(\"表1\") replace
export excel \"路径/filename.x ...
clear
cd D:\
putexcel set "D:\putexcel2.xlsx", sheet(表1) replace

putexcel set "D:\putexcel2.xlsx", sheet(表2) modify

putexcel set "D:\putexcel2.xlsx", sheet(表3) modify
大神你帮我看看我已经把路径改在D盘了,为什么运行之后还是找不到我建的文件
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群