|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub test()
Dim Arr, i As Long, T As String, j As Long
Dim K As Long
Dim S As String
Sheet1.Activate
Arr = Range("a1").CurrentRegion.Offset(1).Value
T1 = ""
T2 = ""
For i = 1 To UBound(Arr) - 1
T1 = T1 & Chr(10) & "G" & Arr(i, 1)
T2 = T2 & Chr(10) & "SSS" & Arr(i, 1)
Next
Open ThisWorkbook.Path & "\testA.txt" For Output As #1
Print #1, Mid(T1, 2)
Close #1
Open ThisWorkbook.Path & "\PStest.txt" For Output As #1
Print #1, Mid(T2, 2)
Close #1
End Sub |
评分
-
1
查看全部评分
-
|