- ©«¤l
- 254
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- Excel 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2019-6-16
- ³Ì«áµn¿ý
- 2024-9-23
|
¦^´_ 7# PJChen
¦³ªÅÀ°§Ú¸Õ¸Õ¬Ý³oÓ¬O¤£¬O§Anªºµ²ªG ·PÁÂ- Sub ¤ñ¹ï¼ÆȽm²ß()
- Application.ScreenUpdating = False
- Arr = [A1].CurrentRegion
-
- For X = 2 To UBound(Arr, 1)
- If Not IsNumeric(Arr(X, 5)) And Arr(X, 2) = "" Then
- Cells(X, 2) = Arr(1, 1)
- T = Arr(1, 1) & R
- If R > 1 Then T = Mid(Arr(1, 1), 1, Len(Arr(1, 1)) - 1) & R
- Arr(1, 1) = IIf(R = 0, Arr(1, 1), T)
- If R >= 1 Then Cells(X, 2) = Arr(1, 1)
- R = R + 1
- ElseIf IsNumeric(Arr(X, 5)) And Cells(X - 1, 2) <> "" Then
- Cells(X, 2) = Arr(1, 1)
- End If
- Next X
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|