Modif macro - enregistrement excel vers mac
moogu
Messages postés
26
Statut
Membre
-
f894009 Messages postés 17417 Date d'inscription Statut Membre Dernière intervention -
f894009 Messages postés 17417 Date d'inscription Statut Membre Dernière intervention -
Je dispose de la macro suivante, mais je n'arrive pas à modifier, pour que celle-ci enregistre chaque feuille en pdf et non pas en excel comme elle le permet tel quel !
Sub feuilles_en_classeur()
Dim feuille As Worksheet
Dim enregistrement, path, nomfeuille As String
path = ActiveWorkbook.path & "\"
For Each feuille In ActiveWorkbook.Sheets
nomfeuille = feuille.Name
feuille.Select
feuille.Copy
ChDir path
enregistrement = path & nomfeuille & ".xlsx"
ActiveWorkbook.SaveAs Filename:=enregistrement, FileFormat:=xlOpenXMLWorkbook, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
Next
End Sub
merci d'avance,
fabien
Sub feuilles_en_classeur()
Dim feuille As Worksheet
Dim enregistrement, path, nomfeuille As String
path = ActiveWorkbook.path & "\"
For Each feuille In ActiveWorkbook.Sheets
nomfeuille = feuille.Name
feuille.Select
feuille.Copy
ChDir path
enregistrement = path & nomfeuille & ".xlsx"
ActiveWorkbook.SaveAs Filename:=enregistrement, FileFormat:=xlOpenXMLWorkbook, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
Next
End Sub
merci d'avance,
fabien
A voir également:
- Modif macro - enregistrement excel vers mac
- Telecharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Liste déroulante excel - Guide
- Adresse mac - Guide
- @ Sur mac - Guide
- Word et excel gratuit - Guide