- ©«¤l
- 967
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1001
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-11-29
- ³Ì«áµn¿ý
- 2022-5-17
|
¦^´_ 1# fusayloveme - Sub xx()
- Sheets("A¸ê®Æ®w").Select
- Set SourceA = Sheets("A¸ê®Æ®w").Range([A2], [A65536].End(xlUp))
- Sheets("B¸ê®Æ®w").Select
- Set SourceB = Sheets("B¸ê®Æ®w").Range([A2], [A65536].End(xlUp))
- For Each A In SourceA
- X = Application.CountIf(SourceB, A) - Application.CountIf(SourceA, A)
- If X <> 0 Then
- Set RFind = Columns("E").Find(A, , , xlWhole)
- If RFind Is Nothing Then
- [E65536].End(xlUp).Offset(1, 0) = A
- [E65536].End(xlUp).Offset(0, 1) = X
- End If
- End If
- Next A
- For Each B In SourceB
- X = Application.CountIf(SourceB, B) - Application.CountIf(SourceA, B)
- If X <> 0 Then
- Set RFind = Columns("E").Find(B, , , xlWhole)
- If RFind Is Nothing Then
- [E65536].End(xlUp).Offset(1, 0) = B
- [E65536].End(xlUp).Offset(0, 1) = X
- End If
- End If
- Next B
- End Sub
½Æ»s¥N½X
|
|