- ©«¤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
|
¦^´_ 22# av8d
¸Õ¸Õ¬Ý ¬O³o¼Ë¶Ü?- Private Sub CommandButton1_Click()
- Dim CB As String, TB As String, ER As String, I As Integer
- CB = ComboBox1
- TB = TextBox1
- For I = 1 To 3
- If ½T»{±K½X(CB, TB) = "±K½X¥¿½T" Then
- GoTo MS
- Else
- TextBox1 = InputBox("±K½X¿ù»~! " & I & "¦¸", "ĵ§i¡I", "½Ð¿é¤J¥¿½T±K½X¡I")
- TB = TextBox1
- End If
- Next
- MsgBox "±K½X¿ù»~! 3¦¸ Ãö³¬ Excel"
- Application.Quit
- Exit Sub
- MS:
- MsgBox "±K½X¥¿½T"
- Username = ComboBox1
- Unload Me
- End Sub
- Private Function ½T»{±K½X(CB As String, TB As String) As String
- Dim I As Integer
- ½T»{±K½X = "±K½X¿ù»~"
- With Sheets("»\´Ö³Q¯Â²á¤Ñ¨t²Î")
- For I = 3 To 5
- If CB = .Range("N" & I) And TB = .Range("O" & I) Then
- ½T»{±K½X = "±K½X¥¿½T"
- Exit For
- End If
- Next
- End With
- End Function
½Æ»s¥N½X |
|