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

[µo°Ý] ½Ð°Ý­n¦p¦ó¦bcombobox¤¤§Q¥Î"Enter"IJµo¨Æ¥ó

[µo°Ý] ½Ð°Ý­n¦p¦ó¦bcombobox¤¤§Q¥Î"Enter"IJµo¨Æ¥ó

·Q­n§Q¥ÎCombobox¤¤¿é¤Jkeyword¨Ó°µ·j´Mªº¥\¯à
µøı®ÄªGÀ³¸Ó¦p¤U¡G
1. Combobox­ì¥ý´N¦³¿é¤J¼Æ²Õ¸ê®Æ, ex:  Apple, Arrow,  Aron....
2. ·íCombobox¤¤¿é¤J¤@­Ó¦r¥À¡A«ö¤UEnter«á¡A¤U©Ô¿ï³æ´N¥u·|³Ñ¤U¿z¿ï¹L«áªº³æ¦r, ex: ¿é¤JA¡A¤U©Ô¿ï³æ´N·|¥X²{Apple, Arrow, Aron;¿é¤JAr¡A¤U©Ô¿ï³æ´N·|¥X²{Arrow, Aron

¥Ñ©óCombobox·|¦Û°Ê±a¤J²Å¦X²Ä¤@­Ó¿é¤Jªºµ²ªG¡A©Ò¥H§Ú±NMatchEntryÄݩʳ]¬°2, fmMatchEntryNone

§Úªºµ{¦¡½X¦p¤U : ­ì¥»¬O§Q¥Îdropbutton·í§@IJµo·j´Mªº¨Æ¥ó¡A¦ýµo²{¤£¤Ó¦n¥Î¡A·í§Ú¤£·Q­n·j´Mªº®É­Ô¨ÌµM·|¥Î¨ìdropbutton¡A©Ò¥H¤~·Q­n§ï¥ÎEnter·í§@IJµo·j´Mªº°Ê§@
  1. 'Testing item serach in ComboBox
  2. Dim Testing() As String

  3. If Worksheets("map").ComboBox1.Text = "" Then
  4.     Worksheets("map").ComboBox1.Clear '¥ý²M°£¤w¦s¦bªº¤º®e
  5. Else
  6.     item_tmp = Worksheets("map").ComboBox1.Value '§ì¨úcombobox¤¤ªºkeyword

  7.     Item_end = Worksheets("result").Cells(1, 1).End(xlToRight).Column '¿é¤J­ì¥»ªºItem
  8.     ReDim Testing(Item_end)
  9.     For m = 1 To Item_end
  10.         Testing(m) = Worksheets("result").Cells(1, m)
  11.     Next m

  12.     For n = LBound(Testing) To UBound(Testing) 'Item©Mkeyword¤ñ¸û¡A¦p¦³¬Ûªñªº«hinput¨ìcombobox¤¤
  13.         aa = item_tmp & "*"
  14.         If Testing(n) Like aa Then
  15.             tmp = Testing(n)
  16.             Worksheets("map").ComboBox1.AddItem tmp
  17.             Debug.Print tmp
  18.         End If
  19.     Next n
  20. End If


  21. End Sub
½Æ»s¥N½X
ÁÂÁÂÀ°¦£

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