Sub MAJ_PU()
Dim MonFichier As String, chemin As String, Mavaleur As String, nom As String
chemin = ThisWorkbook.Path & "\"
On Error Resume Next
For i = 6 To 20
If Range("B" & i) <> "" Then
MonFichier = chemin & "DDP" & Range("A" & i).Value & ".xlsx"
nom = "DDP" & Range("A" & i) & ".xlsx"
Workbooks.Open Filename:=MonFichier, local:=True
Mavaleur = Range("M13")
ThisWorkbook.Activate
Range("F" & i) = Mavaleur
Workbooks(nom).Close False
End If
Next i
MsgBox "Prix unitaire mis à jour."
End Sub