- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 4# lcctno - Option Explicit
- Sub Ex()
- Dim ST, xAr, Ar()
- '**»Ýקאּìªo.TXT¥¿½Tªº¸ê®Æ§¨****
- Open "D:\ìªo.TXT" For Input As #1
- 'Open ThisWorkbook.Path & "\ìªo.TXT" For Input As #1
- '**********************************
- ReDim Ar(0)
- Do While Not EOF(1)
- Line Input #1, ST
- xAr = Split(ST, vbTab) 'Split
- 'Split ¨ç¼Æ ¶Ç¦^¤@Ó³¯¦C¯Á¤Þ±q¹s¶}©lªº¤@ºû°}¦C¡A¥¦¥]§t«ü©w¼Æ¥Øªº¤l¦r¦ê¡C
- '³o¤@ºû°}¦Cªº¤º®e³£¬O¤å¦r
- If UBound(Ar) = 0 Then xAr = Array("¤é´Á", "¦¬½L»ù", "¶}½L»ù", "³Ì°ª»ù", "³Ì§C»ù", "¥æ©ö¶q", "¦Ê¤À¤ñ")
- Ar(UBound(Ar)) = xAr
- If Not EOF(1) Then ReDim Preserve Ar(0 To UBound(Ar) + 1)
- Loop
- Close #1
- With Sheets(1)
- .UsedRange.Clear
- .Range("a1").Resize(UBound(Ar) + 1, 7).Value = Application.Transpose(Application.Transpose(Ar))
- With .UsedRange.Columns(1).Offset(1)
- '** קאּ¤é´Á®æ¦¡ ***
- .Replace "¦~", "/"
- .Replace "¤ë", "/"
- .Replace "¤é", ""
- End With
- End With
- End Sub
½Æ»s¥N½X |
|