- ©«¤l
- 2
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 5
- ÂI¦W
- 0
- §@·~¨t²Î
- Window7
- ³nÅ骩¥»
- Win7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2017-8-15
- ³Ì«áµn¿ý
- 2020-12-25
|
[µo°Ý] ½Ð°Ýn¦p¦ó¦bcombobox¤¤§Q¥Î"Enter"IJµo¨Æ¥ó
·Qn§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·í§Ú¤£·Qn·j´Mªº®ÉԨ̵M·|¥Î¨ìdropbutton¡A©Ò¥H¤~·Qn§ï¥ÎEnter·í§@IJµo·j´Mªº°Ê§@- 'Testing item serach in ComboBox
- Dim Testing() As String
- If Worksheets("map").ComboBox1.Text = "" Then
- Worksheets("map").ComboBox1.Clear '¥ý²M°£¤w¦s¦bªº¤º®e
- Else
- item_tmp = Worksheets("map").ComboBox1.Value '§ì¨úcombobox¤¤ªºkeyword
- Item_end = Worksheets("result").Cells(1, 1).End(xlToRight).Column '¿é¤J쥻ªºItem
- ReDim Testing(Item_end)
- For m = 1 To Item_end
- Testing(m) = Worksheets("result").Cells(1, m)
- Next m
- For n = LBound(Testing) To UBound(Testing) 'Item©Mkeyword¤ñ¸û¡A¦p¦³¬Ûªñªº«hinput¨ìcombobox¤¤
- aa = item_tmp & "*"
- If Testing(n) Like aa Then
- tmp = Testing(n)
- Worksheets("map").ComboBox1.AddItem tmp
- Debug.Print tmp
- End If
- Next n
- End If
- End Sub
½Æ»s¥N½X ÁÂÁÂÀ°¦£ |
|