Bonsoir le forum
dj.run voila une macro qui devrait faire
Sub Creer_rep_sauver()
Dim strpath As String, x As String
On Error Resume Next
strpath = "C:\Mes documents"
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
strpath = strpath & "\excel"
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
strpath = strpath & "\OBJECTIFS"
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
strpath = strpath & "\gel sud"
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
strpath = strpath & "\Depot"
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
strpath = strpath & "\" & Range("X1").Value
x = GetAttr(strpath) And 0
If Err <> 0 Then
MkDir strpath
End If
ActiveWorkbook.SaveAs Filename:=strpath & "\depot du " & Range("v16").Value & ".xls"
End Sub