- ©«¤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
|
¦^´_ 2# aseeddie
§Aªºµ{¦¡½X¬O³Ì²µuªº,¦ý¸ê®Æ¶q¤j®É·|¸û¶O®Éªº- Sub Ex1()
- Dim Rng As Range
- Set Rng = Range("A1")
- Do
- If Application.CountA(Range(Rng, Rng.End(xlDown).Offset(-1))) = 1 Then
- If Rng.End(xlDown).Row = Rows.Count Then
- Range(Rng, Cells(200, "a")) = Rng
- Exit Do
- End If
- Range(Rng, Rng.End(xlDown).Offset(-1)) = Rng
- End If
- Set Rng = Rng.End(xlDown)
- Loop
- End Sub
½Æ»s¥N½X- Sub Ex2()
- Dim Rng As Range, Ar(), i%
- Set Rng = Range("A1")
- Ar = Rng
- For i = 2 To UBound(Ar)
- If Ar(i, 1) = "" Then Ar(i, 1) = Ar(i - 1, 1)
- Next
- Rng = Ar
- End Sub
½Æ»s¥N½X |
|