- ©«¤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
|
¦^´_ 10# RCRG
¸Õ¸Õ¬Ý VBA ÁÙ¦³¨ä¥¦»yªk¥i¼g- Option Explicit
- Sub EX()
- Dim Rng, AR, T, E
- Rng = Array([A!C3:C79], [B!C2:C79]) '[C!C2:C79],[D!C2:C79],[E!C2:C79].....¥i¥[¤J³\¦h½d³ò
- For Each E In Rng
- AR = Application.Transpose(E.Value)
- T = T & "," & Join(AR, ",")
- Next
- AR = Split(T, ",")
- T = ""
- For Each E In AR
- If E <> "" Then
- 'Filter ¨ç¼Æ ¶Ç¦^¤@Ó±q¹s¶}©lªº°}¦C¡A¸Ó°}¦C¥]§t°ò©ó«ü©w¿z¿ï·Ç«hªº¤@Ó¦r¦ê°}¦Cªº¤l¶°¡C '
- If UBound(Filter(AR, E, True)) = 0 Then '°}¦C¸Ì¥u¦³¤@Ó¤¸¯À
- T = T & IIf(T <> "", ",", "") & E
- End If
- End If
- Next
- If T <> "" Then
- T = "¬Û²§¸¹½X¦p¤U¡G" & vbLf & Replace(T, ",", vbLf)
- Else
- T = "¬dµL¬Û²§¸¹½X"
- End If
- MsgBox T
- End Sub
½Æ»s¥N½X |
|