Liste déroulante intélligente
Résolu
viret1290
Messages postés
141
Date d'inscription
Statut
Membre
Dernière intervention
-
viret1290 Messages postés 141 Date d'inscription Statut Membre Dernière intervention -
viret1290 Messages postés 141 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Liste déroulante intélligente
- Liste déroulante excel - Guide
- Liste déroulante en cascade - Guide
- Liste déroulante google sheet - Accueil - Guide bureautique
- Liste code ascii - Guide
- Site dangereux liste - Guide
6 réponses
Bonjour,
A condition qu'il y ait un espace entre les deux textes(Nom Prenom ou Prenom Nom):
A condition qu'il y ait un espace entre les deux textes(Nom Prenom ou Prenom Nom):
Dim a() Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect([A2:A16], Target) Is Nothing And Target.Count = 1 Then With Worksheets("Feuil3") derlig = .Range("C" & Rows.Count).End(xlUp).Row a = Application.Transpose(.Range("C1:C" & derlig)) End With With Me.ComboBox21 .List = a .Height = Target.Height + 3 .Width = Target.Width .Top = Target.Top .Left = Target.Left .Visible = True .Activate End With Me.ComboBox21 = Target 'Me.ComboBox1.DropDown ' ouverture automatique au clic dans la cellule Else Me.ComboBox21.Visible = False End If End Sub Private Sub ComboBox21_Change() If Me.ComboBox21 <> "" And IsError(Application.Match(Me.ComboBox21, a, 0)) Then Set d1 = CreateObject("Scripting.Dictionary") tmp = UCase(Me.ComboBox21) & "*" tmp1 = "* " & UCase(Me.ComboBox21) & "*" For Each c In a If UCase(c) Like tmp Or UCase(c) Like tmp1 Then d1(c) = "" End If Next c Me.ComboBox21.List = d1.keys Me.ComboBox21.DropDown End If ActiveCell.Value = Me.ComboBox21 End Sub Private Sub ComboBox21_DblClick(ByVal Cancel As MSForms.ReturnBoolean) With Worksheets("Feuil3") derlig = .Range("C" & Rows.Count).End(xlUp).Row ComboBox21.List = .Range("C1:C" & derlig).Value End With Me.ComboBox21.DropDown End Sub Private Sub ComboBox21_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = 13 Then ActiveCell.Offset(1).Select End Sub
Ca ne fonctionne pas. j'aimerai même si les lettres que je tape ne sont pas au début de la chaîne de caractère, qu'il les trouve et me propose toutes cellules ou il y a ce que je viens de taper dans la cellule déroulante. je joint le fichier en annexe
https://www.cjoint.com/c/FBcqSjgJfFh
merci d'avance
https://www.cjoint.com/c/FBcqSjgJfFh
merci d'avance
PAR EXEMPLE IL Y A
KING STEPHEN
DONC SI JE TAPE KING IL ME PROPOSE KING STEPHEN
MAIS SI JE TAPE STEPHEN K IL ME PROPOSE RIEN
DON J'AIMERAI QUE CI JE TAPE STEPHEN K IL ME PROPOSE STEPHEN KING
KING STEPHEN
DONC SI JE TAPE KING IL ME PROPOSE KING STEPHEN
MAIS SI JE TAPE STEPHEN K IL ME PROPOSE RIEN
DON J'AIMERAI QUE CI JE TAPE STEPHEN K IL ME PROPOSE STEPHEN KING
Re,
Ecrire en majuscule exprime une colere qui ici n'est pas justifiee, donc ......
un autre exemple: https://www.cjoint.com/c/FBdg32yJaJf
Ecrire en majuscule exprime une colere qui ici n'est pas justifiee, donc ......
un autre exemple: https://www.cjoint.com/c/FBdg32yJaJf
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question