Re : Macro recherchev avec base de données sur une feuille distincte
Bonjour Staple
J'ai suivi tes conseils et enregistrer ma formule en VBA et cela fonctionne nickel.
C'est juste merveilleux
Merci encore
Sub test()
Dim DerLig&
DerLig = 500
Range(Cells(4, "G"), Cells(DerLig, "G")).Formula = "=IF(RC[-6]="""","""",IF(ISERROR(VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,5,0)),0,VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,5,0)&"" ""&VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,4,0)))"
Range(Cells(4, "H"), Cells(DerLig, "H")).Formula = "=IF(RC[-6]="""","""",IF(ISERROR(VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,8,0)),0,VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,8,0)))"
Range(Cells(4, "I"), Cells(DerLig, "I")).Formula = "=IF(RC[-6]="""","""",IF(ISERROR(VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,17,0)),0,VLOOKUP(RC3,'bd identifiants'!R1C1:R700C23,17,0)))"
End Sub