- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# man65boy - Option Explicit
- Private Sub CommandButton1_Click()
- Dim ranme As Variant
- '¿é¤Jû¤u½s¸¹«á¥Î ¨ç¼Æ¨Ó¨ú±oû¤u©m¦W
- ranme = Application.Match(TextBox3.Text, Sht2.Range("D:D"), 0)
- '¦p§ä¨ì ranme->¶Ç¦^¼Æ¦r ,§_«h ranme ->¿ù»~È "# N/A"
- If IsError(ranme) Then '¦pªG¬dµLû¤u½s¸¹¡An¨D«·s¿é¤Jû¤u½s¸¹
- MsgBox "¬dµLû¤u½s¸¹¡A½Ð«·s¿é¤J"
- UserForm1.TextBox3.Text = ""
- UserForm1.TextBox3.SetFocus
- Exit Sub
- End If
- 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") = TextBox3 '³o¸Ì¬OTextBox3Âà¼g¦a¤è
- End With
- End Sub
½Æ»s¥N½X |
|