- ©«¤l
- 17
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 28
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-12-11
- ³Ì«áµn¿ý
- 2016-2-16
|
¤£¦n·N«ä¦A¦¸½Ð±Ð¦U¦ì¤j¤j...¤pªº¤w¸g¨Ìyen956¤j¤j¤è¦¡¦¨¥\«Ø¥ßITEM·j´M¤è¦¡¨Ã¤ÏõX¦b¬ÛÀ³Äæ¦ì
¦ý¤pªº·Q·s¼W¥t¤@·j´M±ø¥óLotNo... ¦ý¦ü¥GÅܧóµL®Ä·Q½Ð°Ý¦U¦ì¤j¤j«e½ú̬O§_¤pªº¦³©¿²¤¤°»ò...Àµ½Ð«ü±Ð...ÁÂÁÂ!!
¦p¤U¹Ï
ªþ¥ó : ¦³·s¼W¤@«ö¶s¥i°õ¦æªí³æ...-
¤u§@ªí³æ.zip (42.11 KB)
- Private Sub CommandButton3_Click()
- '«Å§iÅܼÆ
- Dim b
- Dim myRange As Range, MH
- Dim myTable As Worksheet
- Dim Xrow As Long
- Dim Rng As Range
- Set myTable = Sheets("¤u§@¥æ±µ¨Æ¶µ")
- Set myRange = Range("¤u§@¥æ±µ¨Æ¶µ").Columns(1).Find(a, LookAt:=xlWhole)
- '«Å§ib = ªí³æªºLotNo
- b = UserForm3.LotNo.Text
- 'Åã¥Ü¥þ³¡¸ê®Æªº¦h«¿z¿ï
- With ActiveSheet.Range("¤u§@¥æ±µ¨Æ¶µ")
- .Parent.AutoFilterMode = False
-
- '³]©wLotNo¬°·j´M±ø¥ó
- If b <> "" Then .AutoFilter Field:=6, Criteria1:=b
- End With
- Xrow = myTable.[F2].End(xlDown).Row
- Set Rng = myTable.[F2].Resize(Xrow - 1, 1)
- MH = Application.Match(LotNo.Value, Rng, 0) 'MH
- If IsNumeric(MH) Then
- ¤ÏÀ³¤é´Á.Value = myTable.Cells(MH + 1, "B") '¤ÏÀ³¤é´Á
- ¤ÏÀ³¤Hû.Value = myTable.Cells(MH + 1, "C") '¤ÏÀ³¤Hû
- ¾÷¥x.Value = myTable.Cells(MH + 1, "D") '¾÷¥x
- Recipe.Value = myTable.Cells(MH + 1, "E") 'Recipe
- Lot.Value = myTable.Cells(MH + 1, "F") 'Lot
- ²§±`²½X.Value = myTable.Cells(MH + 1, "G") '²§±`²½X
- ²§±`°ÝÃD´yz.Value = myTable.Cells(MH + 1, "H") '²§±`°ÝÃD´yz
- ³B¸mª¬ªp.Value = myTable.Cells(MH + 1, "I") '³B¸mª¬ªp
- End If
- End Sub
½Æ»s¥N½X |
|