Re, veste,
Il y a peut-être moyen de faire plus simple.... mais je ne sais pas faire mieux pour l'instant
Sub matricule() 'colonne D,F,H et J
Dim i As Integer
Dim DL1 As Long
DL1 = Range("D" & Rows.Count).End(xlUp).Row
DL2 = Range("F" & Rows.Count).End(xlUp).Row
DL3 = Range("H" & Rows.Count).End(xlUp).Row
DL4 = Range("J" & Rows.Count).End(xlUp).Row
For i = 2 To DL1
If IsNumeric(Range("D" & i)) = False Then 'si la valeur n'est pas un nombre, RechercheV, sinon rien
Range("D" & i).Value = Application.VLookup(Range("D" & i), Sheets("SETUP").Range("E1:F5"), 2, False)
End If
Next i
For i = 2 To DL2
If IsNumeric(Range("F" & i)) = False Then 'si la valeur n'est pas un nombre, RechercheV, sinon rien
Range("F" & i).Value = Application.VLookup(Range("F" & i), Sheets("SETUP").Range("E1:F5"), 2, False)
End If
Next i
For i = 2 To DL3
If IsNumeric(Range("H" & i)) = False Then 'si la valeur n'est pas un nombre, RechercheV, sinon rien
Range("H" & i).Value = Application.VLookup(Range("H" & i), Sheets("SETUP").Range("E1:F5"), 2, False)
End If
Next i
For i = 2 To DL4
If IsNumeric(Range("J" & i)) = False Then 'si la valeur n'est pas un nombre, RechercheV, sinon rien
Range("J" & i).Value = Application.VLookup(Range("J" & i), Sheets("SETUP").Range("E1:F5"), 2, False)
End If
Next i
End Sub
Salutations,