Erreur 1004 Mac lors de l'export en PDF

Bonjour tout le monde,

J'aimerais exporter des informations de ma feuille excel en PDF, et pour cela j'ai fait une macro, qui marche très bien sous Windows, mais qui ne marche pas sous Mac (j'ai l'erreur 1004)

Voici mon code :

Application.ScreenUpdating = False
    Worksheets("Temporaire").ExportAsFixedFormat Type:=xlTypePDF, Filename:=ThisWorkbook.Path & "\" & "HeuresSemaine.pdf" _
        , Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
        :=False, OpenAfterPublish:=True

Est ce que quelqu'un aurait une idée de mon erreur ?

Merci d'avance

Bonjour et bonne année,

Esssaie ainsi :

Option Explicit

Public Sub DEMO()

    Application.ScreenUpdating = False
    Worksheets("Temporaire").ExportAsFixedFormat _
            Type:=xlTypePDF, _
            Filename:=ThisWorkbook.Path & Application.PathSeparator & "HeuresSemaine.pdf", _
            Quality:=xlQualityStandard, _
            IncludeDocProperties:=True, _
            IgnorePrintAreas:=False, _
            OpenAfterPublish:=True

End Sub

C'est nickel merci beaucoup !!

Par contre maintenant j'ai une autre erreur, à un autre endroit dans mon code (erreur 438).

If InStr(s.Title, "&11&") <> 0 Then

Mais je ne comprends pas le problème.

Rechercher des sujets similaires à "erreur 1004 mac lors export pdf"