Bonsoir,
Petit UP.
L'idée du post c'est d'exporter la feuille d'où on appelle la macro pour un dépôt sur une adresse web.
Le code ci-dessous fonctionne super pour le local avec Path2
Lorsque je mets le Path "web" j'ai un bug de méthode de sauvegarde.
Merci d'avance de vos lumières.
Leakim
Sub drive()
Dim path As String
Dim path2 As String
Dim sheetname As String
ActiveSheet.Copy
Application.DisplayAlerts = False
path = "https://872478-my.sharepoint.com/personal/qualite_info/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fqualite%5Finfo%2FDocuments%2FEchanges%5FESAT%2F03%20%2D%20ESAT%20de%20Tr%C3%A9laz%C3%A9/"
'path2 = "\\adap.local\Fichiers\Production\Gestion\GRAINES\Drive\"
sheetname = ThisWorkbook.ActiveSheet.Name
ActiveWorkbook.SaveAs Filename:=path & sheetname, FileFormat:=51
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub