- ©«¤l
- 169
- ¥DÃD
- 39
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-4-17
- ³Ì«áµn¿ý
- 2020-7-17
 
|
קïµ{¦¡½X
¦p¦óÅý¥H¤Uªºµ{¦¡¥]§t¦b§ä¤£¨ìû¤u½s¸¹¡A¯à´£¿ô¡A§Æ±æ¦b¦h¥[¤W¦pªG¤£·Q¦bTextBox3¤W¿é¤J½s¸¹(ªÅ¥Õ)ªº·N«ä¡A´Nª½±µ¦b¬¡¶§e²{ªÅ¥Õªº«ü¥O¡A
Private Sub CommandButton1_Click()
On Error Resume Next
'¿é¤Jû¤u½s¸¹«á¥Î ¨ç¼Æ¨Ó¨ú±oû¤u©m¦W
ranme = sht2.Cells(WorksheetFunction.Match(TextBox3.Text, sht2.Range("D:D"), 0), "E")
'¦pªG¬dµLû¤u½s¸¹¡An¨D«·s¿é¤Jû¤u½s¸¹
If ranme = "" Then
MsgBox "¬dµLû¤u½s¸¹¡A½Ð«·s¿é¤J"
UserForm1.TextBox3.Text = ""
UserForm1.TextBox3.SetFocus
Exit Sub
End If
On Error GoTo 0
With sht1
.Range("A2") = Me.ComboBox1.List(Me.ComboBox1.ListIndex, 0)
.Range("A4") = Me.ComboBox1.List(Me.ComboBox1.ListIndex, 1)
.Range("B4") = TextBox2.Text
.Range("B7") = ranme '³o¸Ì¬OTextBox3Âà¼g¦a¤è
End With
End Sub
³Â·Ð¦U¦ì¥ý¶i̤£§[«ü±Ð~ |
|