Sub miseajour()
Dim chemin$, ext$, fso As Object, f As Object, sf As Object
Sheets("Feuil1").Activate
chemin = "\\MON-PC\RESEAUX\" 'ThisWorkbook.Path & "\" 'à adapter éventuellement
ext = Mid(ThisWorkbook.Name, InStrRev(ThisWorkbook.Name, "."), 5)
Set fso = CreateObject("Scripting.FileSystemObject")
For Each f In fso.GetFolder(chemin).SubFolders
If UCase(f.Name) Like "POSTE*" Then
For Each sf In f.SubFolders
ThisWorkbook.SaveCopyAs chemin & f.Name & "\" & sf.Name & "\FORMULAIRE" & ext
Next sf
End If
Next f
MsgBox "FORMULAIRE MIS A JOUR"
If Not ThisWorkbook.Saved Then ThisWorkbook.Save
If Workbooks.Count = 1 Then Application.Quit Else ThisWorkbook.Close
End Sub