Bonjour,
J'ai un code qui enregistre en fichier .txt sous le nom "recette1"
Je souhaiterais faire plutôt une copie sous, autrement il enregistre mon fichier excel en .txt.
Voici le code que j'utilise:
Si je change en:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Sub savetxt() Application.ScreenUpdating = False Application.DisplayAlerts = False ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\RECETTE1.TXT", _ FileFormat:=xlText, CreateBackup:=False Application.DisplayAlerts = True Application.EnableCancelKey = xlInterrupt 'Ou xlErrorHandler End Sub
Ça ne marche pas. Il me dit " erreur compliation - argument nommé introuvable"
Code : Sélectionner tout - Visualiser dans une fenêtre à part ActiveWorkbook.SaveCopyAs Filename:=
Pouvez-vous m'aider SVP.
Partager