- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 1# suchblue
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, Brr, Crr, FPath, sh%, i&, j%
FPath = ThisWorkbook.Path
For sh = 1 To Sheets.Count
FN = Sheets(sh).Name
Open FPath & "\" & FN & ".txt" For Output As #sh
Arr = Sheets(sh).Range("a1").CurrentRegion
ReDim Brr(1 To UBound(Arr, 2))
For i = 1 To UBound(Arr)
For j = 1 To UBound(Arr, 2)
Brr(j) = Arr(i, j)
Next
Crr = Join(Brr, " ")
Print #sh, Crr
Next
Close #sh
Next
End Sub |
|