- ©«¤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
        
|
¦^´_ 3# ã´£³¡ªL
Cancel = True §Y¥i¨ú®øExit°Ê§@, Åý¾nÂI¯d¦bì¦ì
¦P²z
ByVal KeyCode As MSForms.ReturnInteger- Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
- If KeyCode = 13 And TextBox1 > "" Then
- Dim Rng As Range
- Dim ax As Variant
- Dim bx As String
- Set Rng = Sheets("data").[K1:L24]
- bx = TextBox1.Text
- ax = Application.VLookup(bx, Rng, 2, 0)
- If Not IsError(ax) Then
- Label4 = ax
- Else
- MsgBox "¿é¤J¿ù»~"
- 'TextBox1 = ""
- KeyCode = True
- TextBox1.SelStart = 0
- TextBox1.SelLength = Len(TextBox1)
- End If
- End If
- End Sub
½Æ»s¥N½X |
|