J’ai développé sous Excel (dernière version) une application permettant de faire des factures
Ces factures sont sauvegardées en fichier pdf, et envoyée par mail à partir de adobe.
Ca marche bien sous windows, mais sur mon mac ca n’ouvre pas le fichier pdf
Voici la macro :
Sub Enreg_Pdf_Cocktail()
Application.ScreenUpdating = False
Dim LaDate As String, LeParcours As String, LeRep As String, Fichier2 As String, Chemin As String
LaDate = Format(Date, "dd_mm_yyyy")
LeParcours = Range("CLIENT60").Value
Chemin = ActiveWorkbook.Path
Fichier2 = Chemin & "/" & LaDate & "_" & LeParcours
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:= _
Fichier2, Quality:=xlQualityStandard, IncludeDocProperties _
:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
Aussi, sur mon mac, j’ai créé cette macro pour ouvrir le fichier pdf, mais ca ne marche pas :
Sub OuvrirFichierPdf()
Dim Chemin As String
Chemin = ThisWorkbook.Path
ThisWorkbook.FollowHyperlink Chemin & "/" & "Facture.pdf"
Ma question :
Comment, sous mac, comment ouvrir un fichier pdf
J’espere que j’ai été assez clair, je ne suis pas un pro de vba
Merci pour votre aide