当前位置:网站首页>Excel vba: saving multiple worksheets as new files
Excel vba: saving multiple worksheets as new files
2022-07-26 05:03:00 【Avasla】
Sub create a file ()
' Define the name of the text file
Dim file As String, arr, i
' Specify the name of the text file
file = ThisWorkbook.Path & "\ File name to be copied .xlsx"
' Hereunder Array List the names of all worksheets that need to be copied
Worksheets(Array("sheet1", "sheet2", "sheet3")).Copy
Set wbNew = ActiveWorkbook
With wbNew
ActiveWorkbook.SaveAs Filename:=file .Close
End With
End Sub
边栏推荐
- 擅长C(暑假每日一题 6)
- uniapp小程序框架-一套代码,多段覆盖
- Sliding window -- leetcode solution
- security权限管理详解
- What are the demand management software for small and medium-sized enterprises
- 时代潮流-云原生数据库的崛起
- CMD操作命令
- Have you known several distribution methods of NFT? What are the advantages and disadvantages of different distribution methods?
- Seata两阶段提交AT详解
- 滑动窗口——leetcode题解
猜你喜欢

遥感、GIS和GPS技术在水文、气象、灾害、生态、环境及卫生等领域中的应用

公交站间的距离 : 简单模拟题

Working principle and application of fast recovery diode

mysql函数汇总之日期和时间函数

Date and time function of MySQL function summary

擅长C(暑假每日一题 6)

The first open source MySQL native HTAP database in China will be released soon! Look at the three highlights first, limited to the surrounding areas, waiting for you~

注解@Autowired如何自动装配

To study the trend of open source and gain insight into the future of the industry, stonedb community and the China Academy of communications and communications released the Research Report on the dev

域名解析过程全分析,就着文字理解更佳
随机推荐
CMD操作命令
常函数const的学习
Niuke-top101-bm32
Rman-06031 cannot convert database keywords
【ACWing】1268. 简单题
"Game engine light in light out" 4. shader
Minipcie interface can card solves the problem of industrial computer expanding can channel minipcie can
The first open source MySQL native HTAP database in China will be released soon! Look at the three highlights first, limited to the surrounding areas, waiting for you~
uniapp小程序框架-一套代码,多段覆盖
Recursive implementation of exponential enumeration
【云原生 | 17】容器的四种网络模式
Alibaba three sides: how to solve the problems of MQ message loss, duplication and backlog?
「游戏引擎 浅入浅出」4. 着色器
Ggjj, do you have a look at this problem? Does caching cause cross domain problems?
阿里云工业视觉智能工程师ACP认证——备考
面试之请详细说下synchronized的实现原理以及相关的锁
[cloud native | 17] four network modes of container
Customer service relationship management based on SQL net enterprise messenger enterprise communications
Axi protocol (4): signals on the Axi channel
What is the difference between asynchronous and synchronous transmission signals (electronic hardware)