Sub Macro6() For each cell in range("A1:A5000") cell.FormulaR1C1 = _ "=IF(ISERROR(VLOOKUP(RC1,Données!R1C3:R238C4,2,0)),""inconnu"",VLOOKUP(RC1,Données!R1C3:R238C4,2,0))" result=cell.value cell.value = result Next cell End Sub
Application.WorksheetFunction.VLookup
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionSub Macro6() For each cell in range("A1:A5000") cell.FormulaR1C1 = _ "=IF(ISERROR(VLOOKUP(RC1,Données!R1C3:R238C4,2,0)),""inconnu"",VLOOKUP(RC1,Données!R1C3:R238C4,2,0))" result=cell.value cell.value = result Next cell End Sub