- ©«¤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# toxin - Option Explicit
- Sub Ex()
- Dim Rng As Range, R As Integer, i As Integer
- Set Rng = Range("a1").CurrentRegion 'CurrentRegion : ¨ú±oAÄ檺¥Ø«e°Ï°ì-> ¬O«ü¥H¥ô·NªÅ¥Õ¦C¤ÎªÅ¥ÕÄ檺²Õ¦X¬°Ãä¬Éªº½d³ò
- R = 1 '¶µ¦¸±q1 ¶}©l
- i = 2 '²Ä2¦C ¶}©l
- Do
- Rng.Cells(i, 1) = R 'Rng.Cells(i, 1) :¥Ø«e°Ï°ìªº²Ä¤@Äæ
- i = i + Rng.Cells(i, 1).MergeArea.Rows.Count 'pºâÀx¦s®æ¦X¨Ö½d³òªº¦C¼Æ
- R = R + 1 '¶µ¦¸¦A¥[1
- Loop While i <= Rng.Rows.Count '°õ¦æ°j°é: Rng.Rows.Count - pºâ½d³òªº¦C¼Æ
- End Sub
½Æ»s¥N½X |
|