- ©«¤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
|
¦^´_ 5# luke - Option Explicit
- Sub Ex()
- Dim x As Integer, Rng As Range, i As Integer
- x = 1
- Set Rng = Cells(15, 1) '³]©ó [A15]
- Do
- For i = 1 To Cells(x, 3) '3:CÄæ
- Rng = Cells(x, 1) '1:AÄæ'2:BÄæ
- Rng.Offset(, 1) = Cells(x, 2) & IIf(Cells(x, 3) > 1, "-" & i, "")
- Rng.Offset(, 2) = 1
- Set Rng = Rng.Offset(4) '§ï³o¸Ì ¤U²¾4¦C
- Next
- x = x + 1
- Loop While Cells(x, 2) <> ""
- End Sub
½Æ»s¥N½X |
|