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

ª©¦¸Åܧó°ÝÃD

¤j¤j..¦pªG§Ú§â¤u§@ªí¤À¶}À³¸Ó«ç»ò§ï

ª©¦¸.rar (26.15 KB)

TOP

¦^´_ 11# sheau-lan


    ³o¼Ë¡H

ª©¦¸.rar (32.66 KB)

TOP

¹ï...ÁÂÁ¤j¤j..§Ú·Q¯}ÀY¤F³£·Q¤£¥X¨Ó...
¯u¬O³Q¦Û¤v¥´±Ñ¤F..µ{¦¡¯uªº¦nÃø·dÀ´..

TOP

¦^´_ 10# owen06
owen06 ¤j¤j
¤§«e³o¤@¤äµ{¦¡§A¦³À°§Ú¸Ñ¨M,§Ú¤]§¹¦¨¤F
§Ú·Q½Ð°Ý¤@¤U,¨º¦pªG§Ú¬dªº¸ê®Æ¨S¦³¥L¨q"¬dµL¸ê®Æ",¥i¬O§Ú·Q¦bª©¦¸¨ºÃä¥L¨q1¨º³o¼Ë§ÚÑÔ¬OÀ³¸Ó«ç»ò§ï

TOP

¦^´_ 14# sheau-lan


    ¥i¥H³Â·Ðªþ¤WÀɮ׶Ü?
¨Ì·Ó ª©¦¸.rar ¸Ì­±¨S¦³¥i¥H¶ñ¼g¬d¸ßªº¦a¤è¡C
³£¬O¨Ì·Ó ª©¦¸¬ö¿ý ±Nµ²ªG¦^¶Ç¨ì ³Ì·sª©¦¸¡A
¨Ã¥u¬ö¿ýCÄæ¦ì³Ì«á1¦¸¬ö¿ý¡A¸òDÄæ¦ì³Ì«á1¦¸¬ö¿ý¡C
©Ò¥H±z«üªº"¬dµL¸ê®Æ"¬O­n·s¼W¬d¸ß¥\¯à?
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C

TOP

¦^´_ 15# faye59

¦³¼Ú,¦b¬d¸ß¨º¤@­Ó¤u§@ªí

TOP

¦^´_ 16# sheau-lan


    ÁÙ¬O¬Ý¤£¤ÓÀ´...
§A«üªº¬d¸ß¬O³Ì·sª©¦¸³o­Ó¬¡­¶Ã¯¶Ü?
µ{§Çµù¸Ñ:
  1. Private Sub CommandButton1_Click()
  2. LR = Sheet2.[a65536].End(3).Row 'Ū¨ú"ª©¦¸¬ö¿ý"¥þ³¡¸ê®Æ¼Æ¬°¦h¤Öµ§
  3. If LR = 1 Then LR = 2 '¦pªG¥u¦³¤@µ§¡A´N­pºâ¦¨2
  4. LR2 = Sheet3.[a65536].End(3).Row 'Ū¨ú"³Ì·sª©¦¸"¥þ³¡¸ê®Æ¦³¦h¤Öµ§
  5. If LR2 = 1 Then LR2 = 2 '¦pªG¥u¦³¤@µ§¡A´N­pºâ¦¨2
  6. Range("a2:d" & LR2).Value = "" '²MªÅA2¨ìDªºLR2½d³ò"³Ì·sª©¦¸"©Ò¦³¸ê®Æ
  7. For Each MRN In Sheet2.Range("A2:a" & LR) '°j°é"ª©¦¸¬ö¿ý"¤¤±qA2¶}©l©¹¤U½d³ò©Ò¦³¸ê®Æ
  8.   If Application.CountIf(Sheet2.Range("A2:A" & MRN.Row), MRN) = _
  9.       Application.CountIf(Sheet2.Range("A:A"), MRN) Then '¦pªGMRNÅܼƤ¤¦³¨âµ§¥H¤W®É°õ¦æ³Ì«á¤@µ§¡A¨ä¥¦¸õ¹L
  10.       [a65536].End(3).Offset(1, 0) = MRN.Value 'MRNªº­È¦ba65536Àx¦s®æ©¹¤W¹J¨ì¦³­È±oÀx¦s®æ«á©¹¤U¤@®æ¶ñ¤J
  11.       [a65536].End(3).Offset(0, 1) = 1 '¦P¤W©¹¥k¶ñ¤J1
  12.   End If
  13. Next

  14. For Each mrn2 In Range("a2:a" & LR2) '°j°é·í«e¬¡­¶Ã¯A2¨ìAªºLR2Àx¦s®æ¥þ³¡¸ê®Æ
  15.    B = 1 '¥Î©ó­pºâ°j°é¦¸¼Æ¡A°j¦¸°j°é¨ì¦¹­«·s¬°1
  16.    For i = 2 To LR '°j°é¦¸¼Æ2¶}©l¨ìLRªº­È¡ALR¬°Åª¨ú"ª©¦¸¬ö¿ý"¥þ³¡¸ê®Æ¼Æ¬°¦h¤Öµ§
  17.      
  18.      If Sheet2.Cells(i, 1).Value = mrn2 And Sheet2.Cells(i, 2) <> "" Then '¦pªG·í«e"ª©¦¸¬ö¿ý"AÄæ»P°j°é"³Ì·sª©¦¸"¬Û¦P¨ÃBÄ椣¬°ªÅ¥Õ°õ¦æ
  19.         mrn2.Offset(0, 2) = Sheet2.Cells(i, 2) '±N"ª©¦¸¬ö¿ý"·í«eBÄæ­È¶ñ¤J"³Ì·sª©¦¸"©¹¥k²Ä¤G®æ
  20.         B = B + 1 '°õ¦æ¹L¬ö¿ýB+1
  21.         mrn2.Offset(0, 1) = B '¬ö¿ý¸ÓªÚ¥Í¹Ï¸¹°õ¦æ¹L´X¦¸¡Aµ¥©óª©¦¸¦h¤Ö
  22.      End If
  23.      If Sheet2.Cells(i, 1).Value = mrn2 And Sheet2.Cells(i, 3) <> "" Then '¦pªG·í«e"ª©¦¸¬ö¿ý"AÄæ»P°j°é"³Ì·sª©¦¸"¬Û¦P¨ÃCÄ椣¬°ªÅ¥Õ°õ¦æ
  24.         mrn2.Offset(0, 3) = Sheet2.Cells(i, 3) '±N"ª©¦¸¬ö¿ý"·í«eCÄæ­È¶ñ¤J"³Ì·sª©¦¸"©¹¥k²Ä¤T®æ
  25.      End If
  26.   Next
  27. Next
  28. End Sub
½Æ»s¥N½X
©Ò¥H³o¼Ë¬Ý³Ì·sª©¦¸¬O§Y®É²£¥Íªº¡A
À³¸Ó¤£¬O§A«üªº¬d¸ß¡A
¦Óª©¦¸¬ö¿ý¬O§Aªº¸ê®Æ¨Ó·½¡A
»Ý­n¤â°Ê«Ø¸m¡A¶ñ¼g§¹²¦«á¦b³Ì·sª©¦¸¤¤§Y®É²£¥Í¡A
¦³¥Î¨ìªº¥u¦³ª©¦¸¬ö¿ý¡B³Ì·sª©¦¸³o¨â­Ó¬¡­¶Ã¯¡A
§Úªº¸ÑÄÀ¬O³o¼Ë...©Ò¥H§Ú¬Ý¤£¥X¬d¸ß¥\¯à¦b­þ¸Ì...
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C

TOP

        ÀR«ä¦Û¦b : ­n¥Î¤ß¡A¤£­n¾Þ¤ß¡B·Ð¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD