亲,试一下这个,会在当前Excel所在的文件夹谈李竖下建立一个ac.txt文件,里面存放A/C列的数据,中间用TAB空白隔开。
Sub ac()
Dim rcA, i As Long
Dim s As String
rcA = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To rcA
扰缓 s = s & Range("A" & i) & vbTab & Range("B" & i) & vbCrLf
Next
Open 含大ThisWorkbook.Path & "\ac.txt" For Output As #1
Print #1, s
Close #1
End Sub
A与C之间不用分隔符?