J'utilise une méthode particulière:
Le fichier "VOLEUR" rend l écran inactif, ouvre le fichier source, prend et copie les données, ferme le fichier source puis remet l’écran actif.
pour cela voici une petite procédure pour trouver le chemin d’accès au fichier source, il faut la mettre dans le fichier source
Sub macroNOM()
Dim chemin As String
'Sheets("feuil1").Select
chemin = Workbooks(ActiveWorkbook.Name).FullName
MsgBox "Chemin complet " & chemin
chemin = Workbooks(ActiveWorkbook.Name).Path
MsgBox "Nom du Dossier " & chemin
Sheets("papa").Select
Range("C1").Value = chemin
End Sub
Ensuite voici la procédure a glisser dans le fichier VOLEUR :
Sub RequeteVOLEUSE()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Dim titre As String
Dim wbk1 As Workbook
Dim wbk2 As Workbook
titre = "NOMCOMPLETFICHIERSOURCE\classeurSource.xlsm"
Set wbk1 = ThisWorkbook
Set wbk2 = Workbooks.Open(titre) ' jouvre le classeur (titre)
wbk1.Sheets("nana").Cells(3, 4).Value = wbk2.Sheets("papa").Cells(3, 4).Value
wbk2.Close
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Ça a toujours marché car je ne change jamais la place de mes fichiers source