Dim QuelFichier As Variant: QuelFichier = Application.GetOpenFilename("Excel, *.xls")
If QuelFichier <> False _
Then Copie (QuelFichier) _
Else MsgBox "Vous n'avez pas sélectionné de fichier"
End Sub
Sub Copie(QuelFichier)
Dim Plage As Variant
Dim Target As Worksheet: Set Target = ThisWorkbook.Worksheets("S")
Application.ScreenUpdating = False
Application.EnableEvents = False
With Workbooks.Open(QuelFichier)
For Each Plage In Array("A14:F21", "G14:G21")
.Worksheets("PV").Range(Plage).Copy
Target.Range(Plage).PasteSpecial _
Paste:=xlPasteValuesAndNumberFormats, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Next
.Close False
End With
Application.EnableEvents = True
Application.ScreenUpdating = True