Re,
En cherchant on trouve des codes ici et là
A essayer
Option Explicit
#If VBA7 Then
Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
ByVal szFileName As String, ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
#Else
Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
ByVal szFileName As String, ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
#End If
Sub TelechargerFichierDeSharepoint()
Dim CheminDestination As String
Dim ValeurRetour As Long
'l'adresse url du fichier sur Sharepoint
Const URLSharePoint As String = "http://teams/Departement/Shared Documents/Reports/Dossier_test/fichier_test.pdf"
'chemin et le nom de la destination
CheminDestination = "C:\Mes Documents\Dossier Test\fichier_test.pdf"
'lance le téléchargement
ValeurRetour = URLDownloadToFile(0, URLSharePoint, CheminDestination, 0, 0)
End Sub