Sub test()
Dim Sql As String
Sql = "update [Feuil1$" & Replace(Range("A1").CurrentRegion.Address, "$", "") & "] as frm inner join [Feuil1$" & Replace(Range("F1").CurrentRegion.Address, "$", "") & "] as Frm2 on frm.A=Frm2.A set frm.E=Frm2.E, frm.F=Frm2.F "
Debug.Print Sql
With CreateObject("Adodb.connection")
.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & ThisWorkbook.FullName & ";Extended Properties=""Excel 12.0;HDR=YES;"""
.Execute Sql
.Close
End With
End Sub