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

¤À¨É: ¨Ï¥ÎªÌ¦b¤U©Ô¿ï³æ¿é¤J¸ê®Æ«á ¦Û°Ê©ó¤U©Ô¿ï³æ¤¤Åã¥Ü¹ïÀ³ªº¸ê®Æ

¤À¨É: ¨Ï¥ÎªÌ¦b¤U©Ô¿ï³æ¿é¤J¸ê®Æ«á ¦Û°Ê©ó¤U©Ô¿ï³æ¤¤Åã¥Ü¹ïÀ³ªº¸ê®Æ

¥»©«³Ì«á¥Ñ ciboybj ©ó 2019-5-16 00:42 ½s¿è

¥H¤Uµ{¦¡
¥i¥HÅý¨Ï¥ÎªÌ¦b¤U©Ô¦¡¿ï³æComboBox¤¤¿é¤J³æ¦r®É
¦Û°Ê¥h¤ñ¹ïÄæ1¤¤¨ã¦³¬Û¦P¦r¦êªºÀx¦s®æ¤º®e
Á|¨Ò¨Ó»¡¡AÄæ1¶ñ¦³¦h­Ó¤½¥q¦W
¦p¤U¹Ï©Ò¥Ü¡A·í¨Ï¥ÎªÌ©ó¤U©Ô¿ï³æ¤¤¿é¤J¡u¥x¡v «h¤U©Ô¿ï³æªº¤U¤è±N¦Û°Ê²£¥Í¥X¡u¥x¡v¶}ÀYªº¤½¥q¦W

Â^¨ú.PNG
2019-5-16 00:38
  1. Private Sub ComboBox1_Change()

  2.         Dim str_input_len As Integer
  3.         Dim endCol As Integer
  4.         Dim str_cellText As String
  5.         Dim str_output As String
  6.        
  7.         endCol = Range("a65536").End(xlUp).Row

  8.         str_input_len = Len(ComboBox1.Text)
  9.        
  10.         ComboBox1.List = Array()
  11.        
  12.         For i = 1 To endCol Step 1
  13.                 str_output = ""
  14.                 str_cellText = Left(Cells(i, 1).Text, str_input_len)
  15.                 If str_cellText = ComboBox1.Text Then
  16.                         str_output = Cells(i, 1).Text
  17.                         ComboBox1.AddItem str_output
  18.                         SendKeys "%{Down}"
  19.                 End If
  20.         Next
  21. End Sub
½Æ»s¥N½X

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD