- ©«¤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
|
¦^´_ 1# imzues - Option Explicit
- Sub Ex()
- '«á±¨â½X1¡B5¡B21¡B25¬OC
- '2¡B3¡B4¡B6¡B10¡B11¡B15¡B16¡B20¡B22¡B23¡B24¬OB
- '7¡B8¡B9¡B12¡B13¡B14¡B17¡B18¡B19¬OA'
- 'Y±q¥kÃä¼Æ²Ä7½X¬°0¬°D(³o±ø¥ó¤j©ó«e±3Ó±ø¥ó
- Dim Rng As Range, Ar(), i
- Set Rng = Range("d3", Range("d3").End(xlDown)).Resize(, 2)
- Ar = Rng
- For i = 1 To UBound(Ar)
- If Mid(Right(Ar(i, 1), 7), 1, 1) = "0" Then
- Ar(i, 2) = "D"
- ElseIf InStr("01¡B05¡B21¡B25", Right(Ar(i, 1), 2)) Then
- Ar(i, 2) = "C"
- ElseIf InStr("02¡B03¡B04¡B06¡B10¡B11¡B15¡B16¡B20¡B22¡B23¡B24", Right(Ar(i, 1), 2)) Then
- Ar(i, 2) = "B"
- ElseIf InStr("07¡B08¡B09¡B12¡B13¡B14¡B17¡B18¡B19", Right(Ar(i, 1), 2)) Then
- Ar(i, 2) = "A"
- End If
- Next
- Rng.Value = Ar
- End Sub
½Æ»s¥N½X |
|