Bonjour,
Je n'arrive pas à comprendre pourquoi j'ai une erreur avec ce code :
Alors qu'avec ce code tout va bien
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Private sub liste_change() dim VarRecherche as string range ("E:E").select varRecherche=me.liste.value & me.liste2.value selection.find(what:=VarRecherche, after:=ActiveCell,LookIn=XlValues,LookAt:=Xlpart,SeachOrder:=XlByRows,SearchDirection:=XlNext,MatchCase:=false,SearchFormat:=False).select msgbox selection.address
La seule différence étant le nombre d'élément qui compose la variable...(et non pas un des deux éléments)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Private sub liste_change() dim VarRecherche as string range ("E:E").select varRecherche=me.liste.value selection.find(what:=VarRecherche, after:=ActiveCell,LookIn=XlValues,LookAt:=Xlpart,SeachOrder:=XlByRows,SearchDirection:=XlNext,MatchCase:=false,SearchFormat:=False).select msgbox selection.address
Si quelqu'un peut m'expliquer...
Merci
Partager