ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦³Ãö TextBox1_Exit(...)·|run 2¦¸

[µo°Ý] ¦³Ãö TextBox1_Exit(...)·|run 2¦¸

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    TextBox3.SetFocus
    MsgBox "¬°¦ó§Ú·|¥X²{¨â¦¸¡A¤@©w­n¶Ü ?¡A§Ú¥u·Q¥X²{¤@¦¸ªü"
End Sub

Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    MsgBox "³oÃ䬰¦ó§Ú¤S¥u¥X²{¤@¦¸ ?"
End Sub

Private Sub TextBox3_Exit(ByVal Cancel As MSForms.ReturnBoolean)

End Sub

·Ð½Ð¦U¦ì¤j¤j¸Ñ´b¤@¤U
·P®¦

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-10-24 21:28 ½s¿è

¦^´_ 1# ltc
  1. Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
  2.    MsgBox "¬°¦ó§Ú·|¥X²{¨â¦¸¡A¤@©w­n¶Ü ?¡A§Ú¥u·Q¥X²{¤@¦¸ªü"
  3. End Sub

  4. Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
  5.     MsgBox "³oÃ䬰¦ó§Ú¤S¥u¥X²{¤@¦¸ ?"
  6. End Sub

  7. Private Sub UserForm_Initialize()
  8.   TextBox3.AutoTab = False: TextBox2.AutoTab = False
  9.   TextBox3.TabIndex = TextBox1.TabIndex + 1
  10.   TextBox2.TabIndex = TextBox3.TabIndex + 1
  11. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-10-24 16:34 ½s¿è

Hsiehª©¥Dªº¤èªk«Ü¦n
¦^´_ 1# ltc
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    TextBox3.SetFocus §R±¼´N¥i¥H
    MsgBox "¬°¦ó§Ú·|¥X²{¨â¦¸¡A¤@©w­n¶Ü ?¡A§Ú¥u·Q¥X²{¤@¦¸ªü"
End Sub
­ì¦]:
Â÷¶}TextBox1, «Ý¿ï¾Ü±±¨î¶µ«á®É°õ¦æ¤@¦¸TextBox1_Exit .
¦ý±±¨î¶µ¬OTextBox2 ®É TextBox3.SetFocus  ·|¨Ï¾nÂI¦A¦^¨ì TextBox1 ¤S¤@°õ¦æTextBox1_Exit
±±¨î¶µ¬OTextBox3 ®É TextBox3.SetFocus ,¤£·|¨Ï¾nÂI¦A¦^¨ì TextBox1,´N¤£·|¦b°õ¦æTextBox1_Exit

TOP

Hsieh ª©¥D¤Ó·PÁ±z¤F¡A®tÂI³QSetFocusµ¹·d¦º

¤]·PÁÂGBKEE ª©¥Dªº¸É¥R

·P®¦

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD