当前位置:网站首页>VBA divides strings, stores them in an array, writes them to a file, and saves them
VBA divides strings, stores them in an array, writes them to a file, and saves them
2022-06-10 16:55:00 【OOQ】
TextBox1.Text A long string is stored in the , adopt split Function press " " Segmentation , Deposit in ReDat() Array .FileCopy Copy file , take ReDat() The elements in give to Copy the objects specified in the file , And save it .
Dim ReDate() As String
Dim i As Integer
ReDate = Split(TextBox1.Text, " ")
For i = LBound(ReDate) To UBound(ReDate) - 1
'LBound(ReDate) Represents the lower bound of the array , by 0 UBound(ReDate) Represents the upper limit of the array
'MsgBox ("*****" + ReDate(i))
FileCopy reviewFormatPath, reviewFormatPath & "temp" ' Copy file
Set Tempwb = Workbooks.Open(reviewFormatPath & "temp") ' Open file
Tempwb.Worksheets("sheet1").Activate ’ Open file workbook
Cells(6, 9).Value = ComboBox1s ' Assign values to cells in the workbook
Tempwb.Save ' Save workbook
Tempwb.Close
Next i
Unload UserForm2 ' Represents an uninstall form
- LBound(ReDate) Represents the lower bound of the array , The return value is 0
- UBound(ReDate) Represents the upper limit of the array
边栏推荐
- 毕业季:致走向辽远未知的你
- VBA判断一个长字符串中是否包含另一个短字符串
- DAO 是如何实现去中心化治理的?
- 51 timer initial value calculation
- 顺应医改,积极布局——集采背景下的高值医用耗材发展洞察2022
- Customization development of defi cross chain mining DAPP system
- Nanomq newsletter 2022-05 | release of V0.8.0, new webhook extension interface and connection authentication API
- Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?
- Devops-2- from the Phoenix Project
- 简单实现文件上传
猜你喜欢

Fiddler创建AutoResponder

Quickly understand the commonly used symmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry

象形动态图图像化表意数据
![[web security self-study] section 1 building of basic Web Environment](/img/f8/f2d13c2879cdbc03ad261c6569bc1d.jpg)
[web security self-study] section 1 building of basic Web Environment

Software College of Shandong University Project Training - Innovation Training - network security range experimental platform (16)

Tactile intelligent sharing-a133 application in laryngoscope

Software College of Shandong University Project Training - Innovation Training - network security range experimental platform (XVII)

Comply with medical reform and actively layout -- insight into the development of high-value medical consumables under the background of centralized purchase 2022

webdypro layout控件不能用_SAP刘梦

毕业季:致走向辽远未知的你
随机推荐
直播预告 | 社交新纪元,共探元宇宙社交新体验
迪赛智慧数——文字(文本墙):80后儿童时期风靡的25种玩具
一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
技术分享| 快对讲,全球对讲
[untitled]
【无标题】
智慧景区视频监控 5G智慧灯杆网关组网综合杆
Analysis report on marketing status and demand potential of China's acetate starch industry 2022-2028
Global and Chinese intelligent elderly care system industry 2 competition analysis and Investment Strategic Planning Research Report 022-2028
Specific method of Modbus RTU communication between Velcro touch screen and delta inverter (picture and text)
Research Report on the development scale of Chinese sanatorium industry and the 14th five year plan (2022-2028)
简单实现文件上传
postman参数化
Investment prospect and development strategy planning of China's waste power generation equipment industry 2022-2028 Edition
Research Report on development potential analysis and investment development strategy of global and Chinese hydraulic oil industry (2022-2028)
Calling subroutines from other modules in VBA - call a subroutine from a different module in VBA
Docker安装Redis镜像详细步骤(简单易懂,适合新手快速上手)
Analysis report on market demand trend and sales strategy of global and Chinese automatic marshmallow machines (2022-2028)
Embedded development: five challenges in wireless update using MCU
Check whether there is a QR code in the picture