Re : Variable d'une boucle mal definie
Bonsoir,
Pourquoi veut une macro, alors que visiblement ce n'est pas ton truc?
Une simple fonction te rend le même service
en O6 tu écris =SI(ESTERREUR(RECHERCHEV(N6;$B$6:$I$27;7;FAUX));"";RECHERCHEV(N6;$B$6:$I$27;7;FAUX)) et tu duplique sur les autres lignes.
Si tu tiens à la macro, on t'aideras
Je complète avec la macro
'pour chaque nom de la colonne N aller chercher la valeur de colonne I
For I = 6 To Range("N65536").End(xlUp).Row
nomi = Cells(I, 14) ' ligne 6 colonne 14
Cells(I, 15) = ""
For L = 6 To Range("B65536").End(xlUp).Row
If nomi = Cells(L, 2) Then
Cells(I, 15) = Cells(L, 9)
Exit For
End If
Next L
Next I
GIBI