ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¸ê®Æ®w¤ñ¹ïªº°ÝÃD

¦^´_ 4# fusayloveme

¨ä¹ê¤@¶}©l´Nı±oÃD¥Ø©Ç©Çªº(©ÎªÌ»¡§A¨S§âÃD¥Ø,¥\¯àÁ¿²M·¡;©ÎªÌ»¡§Ú²z¸Ñ¯à¤O¤£°÷,¨S§â§Aªº»¡©ú§Ë²M·¡)
1.A¸ê®Æ®w,B¸ê®Æ®w¬O§_¥u¤ñ¹ïAÄæ¦ì(ControlNO)?
  ­Y¬O:AÄæ¦ì(ControlNO)¤Uªº¤º®e¦³­«ÂЪº,¨º­n¦p¦ó¤ñ¹ï?  ³o´N¬O§Ú¤@¶}©l¥u¤ñ¹ï¼Æ¶q®t²§ªº­ì¦]
  ­Y§_:°£AÄæ¦ì¥~,À³§âBÄæ¦ìCÄæ¦ì§e²{¥X¨Ó
2.§A3F,4F©ÒÁ¿ªº§Ú¤]¤£¤F¸Ñ·N«ä

TOP

¥»©«³Ì«á¥Ñ fusayloveme ©ó 2012-3-12 17:45 ½s¿è

¦^´_ 2# register313

¤£¦n·N«ä~¥t¥~¦b¸É¥R¤@¤U¡A´£¨Ñªº¨º­Ó¸ê®Æ¤ñ¹ï¥¨¶°ÀɮסA¸ûµLªk¾A¥Îªº­ì¦]¬O¡AÄæ¦ì¤£¦P¡A¥L«h·|§P©w¬O¬°¤£²Å¦X¡A
¦ý¹ê»Ú¤W¥i¯à¥u¬O¦bB¸ê®Æ®w¤º´¡¤J¤@¦æ©ÎªÌ¤Ö¤@¦æ¡A´N¾É­P¦¹±¡ªpµo¥Í¡A¤£¾å±o§Q¥ÎVBAªº¤@¨Ç»yªk¯à§_ÁקK¦p¦¹±¡ªpµo¥Í©O¡A´N¬O¦pªG¯à°÷¤£¬Ý±Æ¦C¶¶§Ç¡A
¦ýAÄd¡BCÄd¡BEÄd¦pªG¿ù»~¡A«h¾ã¦C¿ù»~¡A¤£¾å±o¯à§_¨Ì·Ó³o¼Ëªº¤è¦¡¶i¦æ§P©w©O!? ÁÂÁ¡C

TOP

¥»©«³Ì«á¥Ñ fusayloveme ©ó 2012-3-12 09:13 ½s¿è

¦^´_ 2# register313

¥ýÁÂÁÂregister313¤j¤j ^_^¡A¦]¬°¤p§Ì§Úªí¹Fªº¥i¯à¤£²M·¡¡A§Ú±N§Úªºµ²ªG¦pEXCELÅã¥Ü¡A¤j·§¬O³o¼Ë¡A¦³A»PB¸ê®Æ®w(¥HA¸ê®Æ®w¬°¥ÀÅé)¡A
¦ý§Ú»Ý­n±NA¸òB¸ê®Æ®w¤£¦Pªº¦a¤è¤ñ¹ï¥X¨Ó¡A±Nµ²ªG¤À¬°A¸ê®Æ®w¯Ê¤Ö¡BB¸ê®Æ®w¯Ê¤Ö¡BA»PB¸ê®Æ®w³£¦³ªº¥H¤ÎA»PB¸ê®Æ®w³£¯Ê¤Öªº¡A
³o¥|ºØ«¬¦¡¡Aµ²ªG¦p§ÚEXCEL¤º®e©Ò¥Ü¡A¥t¥~­Y¦A[ControlNO]³o­ÓÄæ¦ì¡A¤@¶}©l»PA¸ê®Æ®w(¥ÀÅé)¦³¥X¤J¡A·N«ä´N¬O¦³¿ù»~ªº¸Ü¡A
«h¤@¾ã¦C³£¬O¿ùªº(¦p§Ú©Ò¼Ð¥Üªº¶À¦â¤è¶ô)¡A°ò¥»¤è¦V¤j·§¬O³o¼Ë¡A¤£¾å±o¬O§_¯à§Q¥ÎVBA°µ¨ì©O¡Aºô¸ô¤W¦³¤U¸ü¤@­Ó»P§Ú·Qªk±µªñªº¥¨¶°¡A
´£¨Ñµ¹register313¤j¤j¥H¤Î¦U¦ì¤j¤j°Ñ¦Ò¡C

ÁÂÁÂregister313¤j¤j¡Aµ§¼Æªº®t²§ªº½T¹ï§Ú¤]¬O«Ü¦³À°§U ^_^

A»PB¸ê®Æ®w½d¨Ò.rar (10.56 KB)    
¸ê®Æ¤ñ¹ï½d¨Ò.rar (570.18 KB)

TOP

¦^´_ 1# fusayloveme
  1. Sub xx()
  2. Sheets("A¸ê®Æ®w").Select
  3. Set SourceA = Sheets("A¸ê®Æ®w").Range([A2], [A65536].End(xlUp))
  4. Sheets("B¸ê®Æ®w").Select
  5. Set SourceB = Sheets("B¸ê®Æ®w").Range([A2], [A65536].End(xlUp))
  6. For Each A In SourceA
  7.   X = Application.CountIf(SourceB, A) - Application.CountIf(SourceA, A)
  8.   If X <> 0 Then
  9.      Set RFind = Columns("E").Find(A, , , xlWhole)
  10.      If RFind Is Nothing Then
  11.        [E65536].End(xlUp).Offset(1, 0) = A
  12.        [E65536].End(xlUp).Offset(0, 1) = X
  13.      End If
  14.   End If
  15. Next A
  16. For Each B In SourceB
  17.   X = Application.CountIf(SourceB, B) - Application.CountIf(SourceA, B)
  18.   If X <> 0 Then
  19.      Set RFind = Columns("E").Find(B, , , xlWhole)
  20.      If RFind Is Nothing Then
  21.        [E65536].End(xlUp).Offset(1, 0) = B
  22.        [E65536].End(xlUp).Offset(0, 1) = X
  23.      End If
  24.   End If
  25. Next B
  26. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD