- ©«¤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# lionliu
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng As Range, e As Range, i As Integer
- On Error GoTo Is_Err 'µ{¦¡½X¦³¿ù»~®É¨ì Is_Err¦æ
- Set Rng = Range("C5", Range("C" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeConstants)
- 'SpecialCells:½d³ò¤¤«ü©w xlCellTypeConstants¡C¥]§t±`¼ÆªºÀx¦s®æ
- 'SpecialCells:½d³ò¤¤¨S¦³«ü©wªº¯S®íÀx¦s®æ,µ{¦¡·|¦³¿ù»~
- For Each e In Rng.Cells
- i = i + 1
- Cells(e.Row, "a") = i
- Next
- Is_Err:
- If Err > 0 Then MsgBox "qtyÄ椤 ¨S¦³¼Æ¦r"
- End Sub
½Æ»s¥N½X |
|