Bonjour,
J'aimerais enregistrer un fichier Excel à l'aide d'un bouton.
J'aimerais remplacer ce qui est en gras par le contenu de la cellule E8, comment est-ce possible?
Un gros merci à celui qui m'aidera!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20Function CreerChemin(strPath As String) As String Dim fso Set fso = CreateObject("scripting.filesystemobject") If Len(strPath) = 0 Then strPath = ActiveWorkbook.Path & Format(Now, "YYYY-MM-DD") & "\" End If If Right(strPath, 1) <> "\" Then strPath = strPath & "\" End If If Not fso.FolderExists(strPath) Then fso.CreateFolder (strPath) End If Set fso = Nothing CreerChemin = strPath End Function





Répondre avec citation




Partager