Bonjour à tous,
Cela faisait un petit moment
Je cherche, via un raccourci clavier, à sauver mon classeur à 2 endroits différents dont 1 en Read-Only et l'autre en mode normal, lecture-écriture.
Seulement en bloquant dans mon code, j'ai lu ceci:
Comment m'y prendre pour sauver aux 2 endroits? 1 en lecture puis l'autre en lecture-écriture?An option that you can set so that a file can be read but not changed. You can open and view a read-only workbook, but you cannot save changes to the workbook file. If you edit the read-only workbook, you can save your changes only if you give the workbook a new name or save a copy in another location.
N'y a t'il donc pas moyen?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Sub sauver() 'ctrl + d ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly ActiveWorkbook.SaveAs "c:\Documents and Settings\Chewi\Desktop\fichier essai.xls" ActiveWorkbook.ChangeFileAccess Mode:=xlReadWrite ActiveWorkbook.SaveAs "c:\Documents and Settings\Chewi\My Documents\fichier essai.xls" End Sub
Y a t'il moyen avec la méthode SaveAs, AccessMode ? Si oui, comment ?
Merci à vous.
Partager