当前位置:网站首页>Excel VBA:将多个工作表保存为新文件
Excel VBA:将多个工作表保存为新文件
2022-07-26 04:57:00 【Avasla】
Sub 创建文件()
'定义文本文件的名称
Dim file As String, arr, i
'指定文本文件的名称
file = ThisWorkbook.Path & "\需要复制的文件名.xlsx"
'在下面Array中列出所有需要复制的工作表的名称
Worksheets(Array("sheet1", "sheet2", "sheet3")).Copy
Set wbNew = ActiveWorkbook
With wbNew
ActiveWorkbook.SaveAs Filename:=file .Close
End With
End Sub
边栏推荐
- 2、 Internationally renowned project HelloWorld
- SQL encryption and decryption injection details
- MySQL 执行失败的sql是否会计入慢查询?
- 五、域对象共享数据
- can 串口 can 232 can 485 串口转CANbus总线网关模块CAN232/485MB转换器CANCOM
- 十、拦截器
- Yapi installation
- 【语义分割】2018-DeeplabV3+ ECCV
- ES6 modularization +commonjs
- What are the characteristics of the grammar of Russian documents in the translation of scientific papers
猜你喜欢

minipcie接口CAN卡解决工控机扩展CAN通道的难题 minipcie CAN

columns in GROUP BY clause; this is incompatible with sql_ mode=only_ full_ group_ By mysql8.0 solution

Codeforces Round #807 (Div. 2)

这种是我的vs没连上数据库吗

Authentication Encyclopedia (cookies, sessions, tokens, JWT, single sign on), in-depth understanding and understanding of authentication

阿里云工业视觉智能工程师ACP认证——备考

Array sort 1

Wsl2 best practices, eliminate difficult xshell and finalshell

The landing of tdengine in the GPS and AIS scheduling of Zhongtian steel

columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by mysql8.0解决办法
随机推荐
Kubernetes 进阶训练营 调度器
[semantic segmentation] 2018-deeplabv3+ ECCV
C语言——指针一点通※
Fill in the vacancy, and fill in later
Ffmpeg video coding
阿里云工业视觉智能工程师ACP认证——备考
自动化测试框架该如何搭建?
Niuke-top101-bm32
Recursive implementation of exponential enumeration
Axi protocol (5): burst mechanism of Axi protocol
Add and modify the verification logic, and use -validation- to complete the group verification
2022 Henan Mengxin League game (3): Henan University a - corn cannon
What is the real HTAP? (1) Background article
批量将PPM格式图片转化为JPG格式
Ggjj, do you have a look at this problem? Does caching cause cross domain problems?
Can serial port can 232 can 485 serial port to CANbus bus gateway module can232/485mb converter cancom
Wsl2 best practices, eliminate difficult xshell and finalshell
2022河南萌新联赛第(三)场:河南大学 A - 玉米大炮
columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by mysql8.0解决办法
Have you known several distribution methods of NFT? What are the advantages and disadvantages of different distribution methods?