- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-22
|
Sub ¶×¤Jtxt()
Dim Arr, Brr, FS$, xLine, xR As Range
t = Timer
ReDim Arr(1 To 6000, 0): Brr = Arr
Application.ScreenUpdating = False
FS = ThisWorkbook.Path & "\sun03.txt"
Open FS For Input As #1
Do While Not EOF(1)
Line Input #1, xLine
xLine = Replace(xLine, " ", "¡@")
i = i + 1
Arr(i, 0) = xLine
If i > 1 And i Mod 19 = 1 Then Rows(i).PageBreak = xlPageBreakManual
'¡ô³v¤@³]©w¤À¶½u, ³t«×¤@©w·|ºC, ¥i¨ú®ø³o¦æ, ª½±µ±N¦C¦Lªº"¤UÃä¬É"³]¬°13¤½¤À
If i Mod 19 = 3 Then Brr(i, 0) = 1
If i Mod 19 = 17 Then Brr(i, 0) = "A"
Loop
Close #1
'--------------------------------
With Range("A1").Resize(i)
.Value = Brr
On Error Resume Next
.SpecialCells(xlCellTypeConstants, 1).RowHeight = 21 '§Ö³t¿ï¨ú-±`¼Æ-¼Æ¦r
.SpecialCells(xlCellTypeConstants, 2).RowHeight = 30 '§Ö³t¿ï¨ú-±`¼Æ-¤å¦r
On Error GoTo 0
.Value = Arr
End With
MsgBox Timer - t
End Sub |
|