- ©«¤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# nyboy
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Ar As Variant, E As Range, St As String
- With Sheets("vendorcode")
- Ar = Application.Transpose(.Range("a1", .Range("a1").End(xlDown)).Value) ' Application.Transpose Âà¸m
- Ar = "," & Join(Ar, ",") & "," '¤@ºû°}¦CÂର¦r¦ê
- End With
- With Sheets("SHEET1")
- For Each E In .Range("C2", .Range("C2").End(xlDown))
- If InStr(Ar, "," & E & ",") = 0 Then St = St & "," & E '°O¿ý¦b¦r¦ê¤¤
- Next
- End With
- If St <> "" Then
- Ar = Split(Mid(St, 2), ",") '¦r¦êÂର¤@ºû°}¦C
- Sheets("comp_rslt").Range("A1").Resize(UBound(Ar) + 1) = Application.Transpose(Ar)
- End If
- End Sub
½Æ»s¥N½X |
|