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

±N¤u§@ªí1¡B¤u§@ªí2²Å¦X±ø¥ó¸ê®Æ¥Hfind¾ã¦X¨ì¤u§@ªí3°ÝÃD

±N¤u§@ªí1¡B¤u§@ªí2²Å¦X±ø¥ó¸ê®Æ¥Hfind¾ã¦X¨ì¤u§@ªí3°ÝÃD

¦U¦ì¤j­ô¦n¡G
¦³­Ó°ÝÃD½Ð±Ð:
§Ú­n±N²Å¦X¤u§@ªí3ªí³æ¤º®e¥Ñ¤u§@ªí1¡B¤u§@ªí2±a¤J°ÝÃD¡C
§Ú¥v¥Hfind¥h¼g¦ý¬O¦b¤Á´«¥\¹Lªí®É·|¥X¿ù¡C½Ð±Ð§ÚÀ³¦p¦ó­×¥¿¡C
ªþ¤W½d¨Ò
  1. Sub sech()
  2. Dim i, j As Integer
  3. Dim Nam As String

  4. For i = 2 To 6
  5. Nam = Sheets(3).Cells(i, "a")
  6. Sheets(2).Select
  7. Selection.Find(What:=Nam, After:=ActiveCell _
  8.         , LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
  9.         SearchDirection:=xlNext, MatchCase:=True, MatchByte:=False, SearchFormat _
  10.         :=False).Activate
  11. Sheets(3).Cells(i, "b") = ActiveCell.Offset(, 1)
  12. 'µLªk¤Á´«°ÝÃD
  13. Sheets(1).Select
  14. Selection.Find(What:=Nam, After:=ActiveCell _
  15.         , LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
  16.         SearchDirection:=xlNext, MatchCase:=True, MatchByte:=False, SearchFormat _
  17.         :=False).Activate
  18. Sheets(3).Cells(i, "c") = ActiveCell.Offset(, -1)
  19. Next i

  20. End Sub
½Æ»s¥N½X
¬¡­¶Ã¯3.rar (12.35 KB)
lionliu

¸Õ¸Õ¬Ý
Sub sech()
Dim i As Integer, j As Integer, Rng
Dim Nam As String
For i = 2 To 6
    Nam = Sheets(3).Cells(i, "a")
    Sheets(2).Select
    Set Rng = Range("A:A").Find(What:=Nam, LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
        SearchDirection:=xlNext, MatchCase:=True, MatchByte:=False, SearchFormat _
        :=False)
    Sheets(3).Cells(i, "b") = Rng.Offset(, 1)

    'µLªk¤Á´«°ÝÃD
    Sheets(1).Select
    Set Rng = Range("B:B").Find(What:=Nam, LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
        SearchDirection:=xlNext, MatchCase:=True, MatchByte:=False, SearchFormat _
        :=False)
    Sheets(3).Cells(i, "c") = Rng.Offset(, -1)
Next i
End Sub

TOP

¦^´_ 2# yen956

ÁÂÁ°աA§Ú¦A¸Õ¤@¤U
lionliu

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD