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

TextBox¥i¥H°µ¨ìÅçÃÒ¸ê®Æ¶Ü

TextBox¥i¥H°µ¨ìÅçÃÒ¸ê®Æ¶Ü

½Ð°Ý¦U°Ý¤j¤jTextBox­n¦p¦ó¯à¹F¨ìÅçÃÒ¸ê®Æªº®ÄªG
EX¡GTextBox¤º¥u¯à¿é¤J»PÀx¦s®æA1~A10¬Û¦P¤§¸ê®Æ¡A­Y¤£¬Û¦P¦Û°Ê¸õ¥XMsgBox "¸ê°T¿é¤J¤£¥¿½T¡A½Ð­«·s¿é¤J¡I"¡AµM«á±NTextBox¤º¤§¸ê®Æ²MªÅ¡C
§A²q!!

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2014-2-20 19:07 ½s¿è

¦^´_ 1# bear0925900003
  1. Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
  2.   Dim x
  3.   x = Application.Match(TextBox1.Value, Range("A1:A10"), 0)
  4.   If IsError(x) Then MsgBox "¸ê°T¿é¤J¤£¥¿½T": TextBox1.Value = "": Cancel = True
  5. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# stillfish00

¤Ó±j¤F~·P®¦³á
§A²q!!

TOP

        ÀR«ä¦Û¦b : ¨Ã«D¦³¿ú¾{¬O§Ö¼Ö¡A°Ý¤ßµL·\¤ß³Ì¦w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD