将一个 Excel 文件内容复制到另一个 Excel 文件的末尾
如何使用 VBA 将一个 Excel 文件复制到另一个 Excel 文件 如何提及两个 Excel 文件的路径?
这是我在互联网上找到的:
ActiveSheet.Move After:=ActiveWorkbook.Sheets(ActiveWorkbook.Sheets.Count)
这是我看到的,但我无法做到,有人可以告诉我如何制作吗?
我必须将一个 Excel 文件的所有行和列复制到另一个 Excel 文件的末尾。
我该怎么做?
How do i copy one excel file to another excel file using VBA How do i mention the paths of the two excel files?
This is what i found on the internet:
ActiveSheet.Move After:=ActiveWorkbook.Sheets(ActiveWorkbook.Sheets.Count)
This is what i saw but im unable to make it can anyone tell me the way i can make it?
I have to copy all the rows and columns of one excel file to the end of the other excel file.
How do I make it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果要将工作表从一个工作簿移动(或复制)到另一个工作簿,则必须在变量中设置另一个工作簿。让我举个例子:
[编辑] Maverik 建议的新代码
假设您要将工作簿中的每张工作表复制到新工作簿中:
HTH
If you want to move (or copy) worksheets from a workbook to another, you have to set the other workbook in a var. Let me give you an example:
[EDIT] New piece of code as suggested by Maverik
Let's say you want to copy every sheet in your workbook to the new one:
HTH