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

[µo°Ý] ¦p¦ó§âEXCEL SHEEP¤¤ªº¤º®e·í¸ê®Æ®w¡A·j´M«á¦A¥á¦Ü­nªº¤À­¶¤¤?

  1. Sub yy()
  2.     Dim c As Range, i%
  3.     With Sheet1
  4.         For i = 2 To .[a65536].End(3).Row
  5.             Set c = Sheet2.[a:a].Find(.Cells(i, 2))
  6.             If Not c Is Nothing Then
  7.                 .Cells(i, 3).Resize(, 2) = c(1, 2).Resize(, 2).Value
  8.             End If
  9.             Set c = Sheet3.[a:a].Find(.Cells(i, 1))
  10.             If Not c Is Nothing Then
  11.                 .Cells(i, 5).Resize(, 3) = c(1, 2).Resize(, 3).Value
  12.             End If
  13.         Next
  14.     End With
  15. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ atuan207 ©ó 2011-4-25 00:23 ½s¿è

¤£¹ï­C¡A§Úªº°ÝÃD¤£»Ý­nÃö³s
§Ú·Q§Ú¯uªº°ÝÃD°Ýªº¤£¦n¡A¤£¦n·N«ä

§Ú¬O·Q§âsheet2¡B3·í¦¨¸ê®Æ®w¡Asheet1ªºA¡BB¦æ¦U¦Û·í¦¨¤@­Ó¤ñ¹ï¸ê®Æªº­È¡A°µ¨â¦¸¤ñ¹ï¡A²Ä¤@¦¸¬O¹ïsheet1ªºA¡B±µµÛ¦A°µB
EX sheet2 ¨Ì¾Ú¬O±qsheet1 B¦æ §ä¨ì¬Û¦Pªº"©m¦W"«á §âsheet2  B¡BC¦æ¸ê®Æ°e¦^sheet1ªºC¡BD¦æ
     sheet3 ¨Ì¾Ú¬O±qsheet1 A¦æ §ä¨ì¬Û¦Pªº"¾Ç¸¹"§âsheet3 B¡BC¡BD¸ê®Æ°e¦^aheet1ªºE¡BF¡BG¦æ

³o¼Ë¸Ó«ç»ò°µ©O?
§Ú¥Ø«e¦Û¤v½®Ñ§ä¨ìªº¤è¦¡¬ORange("B2:C2").copy range("C2")
³o¼Ë¥u¯à¹ï³æµ§
¤£¹L°t¦X·j´M«á´N¤£ª¾¹D¸Ó«ç»ò°µ¤F

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-4-24 22:40 ½s¿è

Sheet2¡BSheet3Äæ¦ì¨S¦³ÃöÁp©Ê
µLªk¤ñ¹ï
¾Ç¥Í¸ò¾Ç¸¹¦p¦ó°t¹ï?
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD