Sub test2()
Dim Wbk As Workbook, App As Object, L As Variant, C As Variant, V As Variant, Tabl1 As Date
Dim Tabl2 As String
Application.ScreenUpdating = False
Application.Visible = False
Set Wbk = Workbooks.Open("C:\Users\dcola\OneDrive\mpfe\rubis54\HISTORIQUE LIVRAISON.xlsm")
ThisWorkbook.Activate
If [D2] <> "" And [D5] <> "" And [D8] <> "" Then
With Wbk.Sheets("RAPPEL")
.[C4].Offset(Application.Match([D2], .[C5:C35], 0), _
Application.Match([D5], .[D4:H4], 0)) = [D8]
End With
End If
Wbk.Close True
Application.Visible = True
End Sub