- ©«¤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# totes - Option Explicit
- Sub Ex()
- Dim S As String, I As Integer, W As String
- S = ""
- I = 2
- [G:G] = ""
- Do While Cells(I, 5) <> ""
- W = Trim(Cells(I, 5))
- If W Like "TC*" And InStr(S, W & ",") = 0 Then
- S = S & W & ","
- End If
- I = I + 1
- Loop
- If S <> "" Then
- S = Mid(S, 1, Len(S) - 1)
- '1.µ²ªG¦pG6~G9½d¨Ò (¥u»ÝTC¶}ÀY¶µ¥Ø)
- [G1].Resize(UBound(Split(S, ",")) + 1) = Application.Transpose(Split(S, ","))
-
- '2.³Ì²×»Ý¨D¦pG11¦Û§@¦¨¤U©Ô¿ï³æ
- With [G11].Validation
- .Delete
- .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
- xlBetween, Formula1:=S
- End With
- End If
- End Sub
½Æ»s¥N½X |
|