- ©«¤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
|
¥»©«³Ì«á¥Ñ samwang ©ó 2021-10-27 11:16 ½s¿è
¶×¤JtxtÀÉ«á,¦p¦ó¨C20¦æ§@¤À¶(¤À¿ë[A]´N¤À¶),·P®¦.
dou10801 µoªí©ó 2021-10-27 08:59
·s¼W¦p¤U¬õ¦r³¡¤À¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub «ö¶s1_Click()
Dim Arr, Brr(1 To 20, 1 To 1), i&, n%
fs = ThisWorkbook.Path & "\sun03.txt"
Open fs For Input As #1
i = 1 '±q²Ä¤@®æ¶}©l¶×¤J
Do While Not EOF(1) ' °õ¦æ°j°éª½¨ìÀɧÀ¬°¤î¡C
Line Input #1, TextLine
Cells(i, 1) = TextLine
i = i + 1
Loop
Close #1
Arr = Range([a1], [a65536].End(3))
For i = 1 To UBound(Arr)
n = n + 1: Brr(n, 1) = Arr(i, 1)
If n = 20 Or i = UBound(Arr) Then
With Sheets.Add(after:=Sheets(Sheets.Count))
.[a1].Resize(20) = Brr
End With
n = 0: Erase Brr
End If
Next
End Sub |
|