·íuserform5.TextBox1¦³ Change®É«o¨S¦³§@¥Î(¦³TextBox1_Change()),
- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
·íuserform5.TextBox1¦³ Change®É«o¨S¦³§@¥Î(¦³TextBox1_Change()),
½Ð±Ð¦U¦ìªO¥D¤j¤j:
©óuserform2¤º
·íTextBox2¦³ Change®É,©I¥suserform5 ¥Bfocus¦buserform5.TextBox1(¤]¦³TextBox1_Change()),
·íuserform5.TextBox1¦³ Change®É«o¨S¦³§@¥Î¡C
¦ý¥ÎComd±Ò°ÊSub Button1_Click()®É,
·íuserform5.TextBox1¦³ Change®É¦³§@¥Î
¬°¤°»ò ÀYµhÀYµh ½ÐÀ°§Ú
Private Sub TextBox2_Change()
Sheets("°ò¥»¸ê®Æ").Range("L29").ClearContents
k = 0
Sheets("°ò¥»¸ê®Æ").Cells(1, 17) = TextBox2.Text
If TextBox2.Text = "" Then
TextBox3.Text = ""
GoTo 5
End If
Sheets("¾Ç¥Í¸ê®Æ").Activate
On Error Resume Next
aam = TextBox2.Text
row1 = Sheets("¾Ç¥Í¸ê®Æ").Range("A65536").End(xlUp).Row
If row1 = 1 Then Exit Sub
For i = 2 To row1
If Cells(i, 4) = aam Then
k = k + 1
GoTo 5
End If
Next
5
If k = 1 Then
TextBox2.Text = Sheets("°ò¥»¸ê®Æ").Cells(1, 17)
GoTo 10
Else
Exit Sub
End If
10
myform5
On Error GoTo 0
End Sub
Private Sub Button1_Click()
Call myform5
End Sub
Sub myform5()
UserForm5.Show
End Sub |
|
|
|
|
|
|
- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
¥»©«³Ì«á¥Ñ yangjie ©ó 2010-11-6 11:55 ½s¿è
¦^´_ 6# GBKEE
¹ï¤£°_
§Ú·Qª¾¹D±zªºE-Mail¤è«K¬ö¤¸½Zµ¹±z
¦]Ó¤HÅv½u¤£°÷,µLªkÂI¾\±zªºMail¸ê®Æ
§Ú¦A±Hì½Z·d°Ñ¦Ò,ÁÂÁ |
|
|
|
|
|
|
- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
|
|
|
|
|
|
- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
·íuserform5.TextBox1¦³ Change®É«o¨S¦³§@¥Î
¬O»¡TextBox1Áä¤J¤º®e»P«e¤º®e¤@¦³¬Û²§À³¸Ó§Y°õ¦æµ{¦¡«oµL°Ê©ó°J
¦ü¥G¦¹®Éuserform5«Dactivate,¦ý¨C¤@Ótextbox«o¥ikeyin
(¦]¹q¸£«Äé,¥¢¥h»PGBKEEÁpµ¸¤è¦¡,[email protected])
¬O§_¤U¦C¦³°ÝÃD
Private Sub TextBox2_Change()
Sheets("°ò¥»¸ê®Æ").Range("L29").ClearContents
k = 0
Sheets("°ò¥»¸ê®Æ").Cells(1, 17) = TextBox2.Text
If TextBox2.Text = "" Then
TextBox3.Text = ""
GoTo 5
End If
Sheets("¾Ç¥Í¸ê®Æ").Activate
On Error Resume Next
aam = TextBox2.Text
row1 = Sheets("¾Ç¥Í¸ê®Æ").Range("A65536").End(xlUp).Row
If row1 = 1 Then Exit Sub
For i = 2 To row1
If Cells(i, 4) = aam Then
k = k + 1
GoTo 5
End If
Next
5
If k = 1 Then
TextBox2.Text = Sheets("°ò¥»¸ê®Æ").Cells(1, 17)
GoTo 10
Else
Exit Sub
End If
10
myform5
On Error GoTo 0
End Sub |
|
|
|
|
|
|