をありがとう、あなたは、ユーザーフォームのコードウィンドウに次のコード
Private Sub ComboBox1_Change()
Dim i As Long
Static found As Boolean '<--| this will be used as this sub "footprint" and avoid its recursive and useless calls
If found Then '<-- we're here just after the text update made by the sub itself, so we must do nothing but erase our "footprint" and have this sub run at the next user combobox change
found = False '<--| erase our "footprint"
Exit Sub '<--| exit sub
End If
With Me.ComboBox1 '<--| reference userform combobox
If .Text = "" Then Exit Sub '<--| exit if no text has been typed in
For i = 0 To .ListCount - 1 '<--|loop through its list
If InStr(.List(i), .Text) > 0 Then '<--| if current list value contains typed in text...
found = True '<--| leave our "footprint"
.Text = .List(i) '<--| change text to the current list value. this will trigger this sub again but our "footprint" will make it exit
Exit For '<--| exit loop
End If
Next i
End With
End Sub
@SophieUtを試して、あなたはそれを介して取得しましたか? – user3598756
@SophieUt、あなたを助けようとしている人に適切なフィードバックを与えるのはいいことです – user3598756