Sub Macro2()
'
' Macro2 Macro
'
Dim Plage_Clients As Range
Workbooks.Open Filename:= _
"C:\Desktop\DESADV DDA juillet 2016.xlsx"
'Windows("Copie de 46093_Ano DESADV_JUILLET-2016.xlsb").Activate
Set Plage_Clients = ActiveWorkbook.Sheets(1).Range("C2:D" & ActiveWorkbook.Sheets(1).[A65000].End(xlUp).Row) '.CurrentRegion
ActiveWorkbook.Names.Add Name:="Plage_Clients", RefersTo:=Plage_Clients
With ThisWorkbook.Sheets(1)
derligne = .Cells(Rows.Count, 1).End(xlUp).Row
.Range("H2:H" & derligne).FormulaR1C1 = "=IF(VLOOKUP(RC[-2],'[DESADV DDA juillet 2016.xlsx]Contrôle EDI DESADV'!Plage_Clients,2,FALSE)=0,"""",VLOOKUP(RC[-2],'[DESADV DDA juillet 2016.xlsx]Contrôle EDI DESADV'!Plage_Clients,2,FALSE))"
End With
End Sub