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

VAB ¸ê®Æ¤ñ¹ï¤ÎÂà¼g

VAB ¸ê®Æ¤ñ¹ï¤ÎÂà¼g

¤j®a¦n¡A³Ìªñ­n¼g¤@­Ó»Ý¨D¬O¡A¦³¤G¥÷¸ê®Æªí¡A¤G¥÷¸ê®Æªí(¸ê®Æªí¦WºÙ¡G³æÀY¡B³æ¨­) ¦³¤@­Ó¦@¦PªºKEY ­È(¤£·|­«ÂÐ)¡A¤G¥÷©¼¦¹¤ñ¹ï«á¡A·|±N¤G¥÷¸Ì­±ªº¬Y¨ÇÄæ¦ìÂà¤J¨ì¥t¤@­Ó¸ê®Æªí¡A
¦ý­n¦³¤@­Ó§PÂ_¬O¡AÂà¤J¨ì¥t¤@­Ó¸ê®Æªíªº­È¥²¶·¥ý®Ö¹ïKEY­È¡A¤£ª¾¤j®aÀ´¤£À´§Úªº·N«ä......«¢«¢¡A¦³ÂIÃøªí¹F




¦]¬°¼g¤F¤@¬P´Á ¡A«oµo²{·U¼g¨SÀYºü¤@ª½¼g¤£¥X¨Ó¡A½Ð¤j®a¥i¥Hµ¹§Ú­Ó¤è¦V¡AÁÂÁÂ

¥»©«³Ì«á¥Ñ luhpro ©ó 2016-3-25 00:38 ½s¿è

¦^´_ 1# maggie1313
¤@¯ë­Y¹J¨ì "¦³¤@­Ó¦@¦PªºKEY ­È(¤£·|­«ÂÐ)" ³oÃþªº»Ý¨D,
§Ú·|Àu¥ý¨Ï¥Î Directory ¨ç¼Æ¨Ó¹ê²{.

¦]¬°§A¨S´£¨Ñ½d¨ÒExcelÀÉ®×,
©Ò¥H§Ú¥t¥~°µ¤@­Ó,
§A¥i¥H°Ñ·Ó­×§ï¹ê²{§Aªº»Ý¨D.
  1. Private Sub cbMerge_Click()
  2.   Dim lRow&
  3.   Dim sStr$
  4.   Dim vD1, vD2
  5.   
  6.   Set vD1 = CreateObject("Scripting.Dictionary")
  7.   Set vD2 = CreateObject("Scripting.Dictionary")
  8.   
  9.   Sheets("¦X¨Ö").Range([B2], [C100]).Clear
  10.   
  11.   With Sheets("¯Á¤Þ¤@")
  12.     lRow = 2
  13.     While .Cells(lRow, 1) <> ""
  14.       vD1(CStr(.Cells(lRow, 1))) = .Cells(lRow, 2)
  15.       lRow = lRow + 1
  16.     Wend
  17.   End With
  18.   
  19.   With Sheets("¯Á¤Þ¤G")
  20.     lRow = 2
  21.     While .Cells(lRow, 1) <> ""
  22.       vD2(CStr(.Cells(lRow, 1))) = .Cells(lRow, 2)
  23.       lRow = lRow + 1
  24.     Wend
  25.   End With

  26.   With Sheets("¦X¨Ö")
  27.     lRow = 2
  28.     While .Cells(lRow, 1) <> ""
  29.       sStr = .Cells(lRow, 1)
  30.       .Cells(lRow, 2) = vD1(sStr)
  31.       .Cells(lRow, 3) = vD2(sStr)
  32.       lRow = lRow + 1
  33.     Wend
  34.   End With
  35. End Sub
½Æ»s¥N½X
Dictionary¹ê°µ.zip (10.02 KB)

¸É¥R:
¦pªG»Ý­n¥Î¨ì¾ã¦C¤¤¤£¥u¤@Ä檺¸ê®Æ,
¥i¥H¯Á¤Þ ¦C¸¹:
vD1(CStr(.Cells(lRow, 1))) = lRow
¦A¥Î
Sheets("¦X¨Ö").Cells(lRow, 2) = Sheets("¯Á¤Þ¤@").Cells(vD1(sStr), Ä渹)
¨Ó¨ú±o·Q­nªº¸ê®Æ.

¥t¥~,«Øij¤j®a¶}ÃD¤å¤¤¾¨¶q¯à¤@¨Ö´£¨Ñ¤w¸g¥´¦n½d¨Ò¸ê®ÆªºExcelÀÉ®×,
³o¼Ë¦^¤åªº¤H¤~¤£¥ÎÁÙ­n¦Û¤v¨Ì·Ó¹Ï¤ù¤º®e¤@­Ó¤@­Ó¿é¤J¸ê®Æ«ØExcelÀÉ®×,
¥i¥H§â®É¶¡±Mª`¦b¦p¦ó¹ê²{§Aªº»Ý¨D¤W.

TOP

¦pªG½s¸¹¦³­«½Æªº¡A©m¦W¤£¦P©Î¬O«°¥«¤£¦P©O?

TOP

¦^´_ 3# kim223824
¨º´N§ï¥H ½s¸¹_©m¦W ©Î¬O ½s¸¹_«°¥«  ªº²Õ¦XÁä­È¨Ó°µ°Ï¤À.
¨ä¤¤ªº _ ¥i¥H§ï¬°¥ô¦ó¨t²Î¥i±µ¨ü¨Ã¨¬¸ê°Ï¤Àªº²Å¸¹©Î¤å¼Æ¦r¨Ó¨ú¥N.

TOP

[attach]23624[/attach]¦^´_ 6# maggie1313
§A¦n¡A§Ú·Q¦b½Ð°Ý¤@¤U ¡A¤@¶}©l§Ú¥²¶·¥ý­n§âKEY­ÈCOPY¨ì¦X¨Öªº¸ê®Æ¤¤¡A¥ý·íKEY­È
³o¼Ëªº¤è¦¡§Ú­n«ç¼Ë¥Î?

TOP

¦^´_ 7# maggie1313
EF20160328.rar (25.83 KB)
¦]¬°¤£½T©w¬O§_¦³¤W¶Çªþ¥ó¦¨¥\¡A¬G­«·s¤W¶Ç¤@¦¸

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2016-3-29 21:51 ½s¿è

¦^´_ 5# maggie1313
§A¨S¦³´£¨Ñ¥¿½Tµ²ªG½d¨Ò,©Ò¥H§Ú¥u¯à¥Î²qªº:
  1. Sub nn()
  2.   Dim lRow&
  3.   Dim wsSou As Worksheet, wsTar As Worksheet
  4.   Dim vD
  5.   
  6.   Set vD = CreateObject("Scripting.Dictionary")
  7.   Set wsSou = Sheets("EF³æ¨­")
  8.   Set wsTar = Sheets("¦X¨Ö¸ê®Æ")
  9.   
  10.   lRow = 2
  11.   With wsSou
  12.     While .Cells(lRow, 8) <> ""
  13.       wsTar.Cells(lRow, 1) = .Cells(lRow, 8)
  14.       wsTar.Cells(lRow, 2) = .Cells(lRow, 9) & "-" & .Cells(lRow, 10)
  15.       vD(CStr(.Cells(lRow, 8) & "-" & .Cells(lRow, 9) & "-" & .Cells(lRow, 10))) = lRow
  16.       lRow = lRow + 1
  17.     Wend
  18.   End With
  19. End Sub
½Æ»s¥N½X

TOP

¦^´_ 7# luhpro
§A¦n¡A·PÁ§Aªº¸Ñµª¡C´ú¸Õ«á¬OOKªº¡C¦ý²{¦b§Ú¦³¥t­Ó°ÝÃD·Q½Ð°Ý¡A¦p¹Ï[attach]23643[/attach]
´N¬O§Ú­Ìªº¦X¨Ö¸ê®Æ­n±q²Ä¤T¦æ¶}©l¼g¤J¸ê®Æ¡A¦ý«á¨Óµo²{¦³¨Ç°ÝÃD¡A·Q¦b½Ð±Ð¡C(¦pªG®É¶¡¤¹³\¬O§_¥i²³æ¥[¤Jµù¸Ñ¡A³o¼Ë§Ú´N¥i¥H¦Û¤w¸ÕµÛ½Õ¾ã¤~¤£¥Î¨C¦¸³£³Â·Ð§A­Ì)
·Q¦b½Ð°Ý¤G­Ó¶i¶¥ªº°ÝÃD¡C
1.¡G©µÄò¤@¶}©l©Ò°Ýªº¡A¦pªG§Ú¦³¤FKEY­È¡A«áÄò§Ú·|¶}©l§â¡uEF³æÀY¡v¸ò¡uEF³æ¨­¡vªºÄæ¦ì¶}©l¥á¨ì¡u¦X¨Ö¸ê®Æ¡v¡A¨º³o¼Ëªº¸Ü§Ú¬O¤@¼Ë¬O¨Ì·Ó¤@¶}©lªºµ{¦¡®M¥Î¶Ü?
2¡G¦p¹Ïªºªí¹F


ÁÂÁ¤j®aÀ°¦£

TOP

¦^´_ 8# maggie1313
¸É¤W ­n±q²Ä¤T¦æ´¡¤J¸ê®Æªº¹Ï¤ù[attach]23647[/attach]

TOP

¦^´_ 8# maggie1313
¸É¤W ­n±q²Ä¤T¦æ´¡¤J¸ê®Æªº¹Ï¤ù[attach]23647[/attach]

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD