- ©«¤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
|
¦^´_ 3# kaosh22
1# ¦³»¡:³oÃä¦]¬°ì©l¸ê®Æªº©R¦Wì«h¡A·|¥X²{¦pF4,F5³£¬O¬Û¦PªºFS1¡A
3# ¹Ï¤ù¤G¬O±N1,8,5,1±a¤J¤u§@ªí¦³¤W¦âªºÀx¦s®æ«á±N®Æªí§ó·s
·íF4,F5³£¬O¬Û¦PªºFS1 n¦p¦ó±a¤JFS1(¤u§@ªí)¦³¤W¦âªºÀx¦s®æ.- Option Explicit
- Sub Ex_¹Ï¤@()
- Dim Ar(), Ay(1 To 5), i As Integer, Sp As Variant
- With Sheets("SHEET1")
- i = 2
- Do While .Cells(i, "A") <> ""
- Erase Ay
- ReDim Preserve Ar(1 To i - 1)
- Sp = Split(.Cells(i, "A"), "-")
- Ay(1) = Sp(0)
- Ay(2) = Sp(1)
- Ay(3) = Mid(Sp(2), 1, 2)
- If Len(Sp(2)) > 2 Then Ay(4) = Mid(Sp(2), 3, 2)
- Ay(5) = .Cells(i, "C")
- Ar(i - 1) = Ay
- i = i + 1
- Loop
- .Range("F2").Resize(i - 2, 5) = Application.Transpose(Application.Transpose(Ar))
- End With
- End Sub
½Æ»s¥N½X |
|