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

TEST»P¸ê®ÆÀÉ(§÷®Æ)¤u§@ªí¤ñ¹ï

TEST»P¸ê®ÆÀÉ(§÷®Æ)¤u§@ªí¤ñ¹ï

¥»©«³Ì«á¥Ñ plyl ©ó 2011-3-21 10:39 ½s¿è

Private Sub AA_Click()
Dim myrow, myrow2 As Integer

For myrow = 4 To 50  
If Sheets("TEST").Cells(myrow, 1) = "" Then Exit For
    For myrow2 = 2 To 5000
      If Sheets("¸ê®ÆÀÉ").Cells(myrow2, 1) = "" Then Exit For
      If Sheets("¸ê®ÆÀÉ").Cells(myrow2, 1) = Sheets("TEST").Cells(myrow, 1) = Sheets("¸ê®ÆÀÉ").Cells(myrow2, 18) Then _
      Sheets("TEST").Cells(myrow, 2) = Sheets("¸ê®ÆÀÉ").Cells(myrow2, 18):
    Exit For
  
Next
Next
End Sub
µù:1.§Ú¦³¨â­Ó¤u§@ªí"TEST' "¸ê®ÆÀÉ"
    2.TEST("A4:A50")»P¸ê®ÆÀÉ("A2:A500")°µ¤ñ¹ï
     3.§¹¥þ§k¦X´N±N¸ê®ÆÀÉ("A3")¶K¨ìTEST ("B4")


³Â·Ð¤j¤jÀ°§Ú¸ÑªR­þ¸Ì¥X¿ùÁÂÁ·P®¦
ªì¾ÇªÌ
plyl

¥X²{  «¬ºA¤£²Å¦X (¿ù»~ 13)

ªì¾ÇªÌ
plyl

TOP

3.§¹¥þ§k¦X´N±N¸ê®ÆÀÉ("A3")¶K¨ìTEST ("B4")
¬O"D3"
myrow3 = myrow3 + 1 "­ì¨Ó­«ÂI´N¦b³o"
§Ú¤S¦b³o«á­±¤S¥[¤@¦æ¤£µM¸õ¤£¥X¥h
If Sheets("TEST").Cells(myrow, 1) = "" Then Exit For

GBKEEª©¥D ¨¯­W±z¤F!¤p§Ì¥Ñ°J·PÁÂ
plyl

TOP

¥»©«³Ì«á¥Ñ plyl ©ó 2011-3-21 19:23 ½s¿è
¦^´_  plyl
Private Sub AA_Click()
    Dim myrow, myrow2, myrow3 As Integer
    myrow3 = 4
    F ...
GBKEE µoªí©ó 2011-3-21 17:28


   {­ì¨Ó¬O³o¼Ë©ñ
   ¬O¤£¬OFor myrow = 4 To 50 ¦pªG20¬OªÅ®æ ·|Â÷¶}For myrow ªº¦^°é}

   Dim myrow, myrow2, myrow3 As Integer

    myrow3 = 4

    For myrow = 4 To 50

        For myrow2 = 3 To 5000

            If Sheets("TEST").Cells(myrow, 1) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 1) Then
                    'ITO RECIPE
                    Sheets("TEST").Cells(myrow3, 41) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 32)
                    'ITES ¥iRUN 01 OR 02
                    Sheets("TEST").Cells(myrow3, 64) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 33)
                    myrow3 = myrow3 + 1
             If Sheets("TEST").Cells(myrow, 1) = "" Then Exit For     {§Ú¬O©ñ¦b³o¸Ì}      
           End If

        Next

    Next

GBKEEª©¥D ¨¯­W±z¤F!¤p§Ì¥Ñ°J·PÁÂ
plyl

TOP

¥»©«³Ì«á¥Ñ plyl ©ó 2011-3-23 06:01 ½s¿è

If Sheets("TEST").Cells(myrow, 1) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 1) Then

Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 1)  ¦³¸ê®Æ

¤èªk1
Dim myrow, myrow2, myrow3 As Integer

    myrow3 = 4

    For myrow = 4 To 50
    If Sheets("TEST").Cells(myrow, 1) <> "" Then        For myrow2 = 3 To 5000

            If Sheets("TEST").Cells(myrow, 1) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 1) Then
                    'ITO RECIPE
                    Sheets("TEST").Cells(myrow3, 41) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 32)
                    'ITES ¥iRUN 01 OR 02
                    Sheets("TEST").Cells(myrow3, 64) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 33)
                    myrow3 = myrow3 + 1
            
            End If

        Next
    End If    Next

¤èªk2
Dim myrow, myrow2, myrow3 As Integer

    myrow3 = 4

    For myrow = 4 To 50

        For myrow2 = 3 To 5000

            If Sheets("TEST").Cells(myrow, 1) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 1) Then
                    'ITO RECIPE
                    Sheets("TEST").Cells(myrow3, 41) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 32)
                    'ITES ¥iRUN 01 OR 02
                    Sheets("TEST").Cells(myrow3, 64) = Sheets("¸ê®ÆÀÉ(§÷®Æ)").Cells(myrow2, 33)
                    myrow3 = myrow3 + 1
             If Sheets("TEST").Cells(myrow, 1) = "" Then Exit For         
           End If

        Next

    Next
¥Ø«e´ú¸Õ¨âºØ¤èªk¦h¥i¥H§ì¨ì¸ê®Æ
½Ð°Ý¤èªk2ªºµ²ºc¬O¤£¬O¿ùªº
GBKEEª©¥D ¨¯­W±z¤F!¤p§Ì¥Ñ°J·PÁÂ
plyl

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD