bonjour
voilà j'ai :
QPath = "D:\DOSSIER PPT\SAV\"
' Récupère l'ancien nom du fichier
QFic = Dir(QPath & "S" & "*" & " " & "*" & " " & "*" & " " & "*" & ".xls")
' Le sauvegarde sous le nouveau nom
ActiveWorkbook.SaveAs "D:\DOSSIER PPT\SAV\S" & X & " " & Y & " " & Z & " " & Format(Now, "dd-mm-yy hhnnss") & ".xls"
' Supprime l'ancien si existe
If QFic <> "" Then Kill QPath & QFic
On Error GoTo 0
avec X = nom
Y = autre nom
Z = encore un autre nom
Le problème est qu'il ne kill pas.
j'ai fait l'essai "sans espace" et ca fonctionne bien
alors qu'est ce qui se passe ?
merci
voilà j'ai :
QPath = "D:\DOSSIER PPT\SAV\"
' Récupère l'ancien nom du fichier
QFic = Dir(QPath & "S" & "*" & " " & "*" & " " & "*" & " " & "*" & ".xls")
' Le sauvegarde sous le nouveau nom
ActiveWorkbook.SaveAs "D:\DOSSIER PPT\SAV\S" & X & " " & Y & " " & Z & " " & Format(Now, "dd-mm-yy hhnnss") & ".xls"
' Supprime l'ancien si existe
If QFic <> "" Then Kill QPath & QFic
On Error GoTo 0
avec X = nom
Y = autre nom
Z = encore un autre nom
Le problème est qu'il ne kill pas.
j'ai fait l'essai "sans espace" et ca fonctionne bien
alors qu'est ce qui se passe ?
merci