OVH Cloud OVH Cloud

PDF

2 réponses
Avatar
Jean
J'aimerais ouvrir un document PDF
à partir d'une macro.
Est ce possible ?
Merci
Guy

2 réponses

Avatar
j
ThisWorkbook.FollowHyperlink "c:rien.pdf", , True


http://jacxl.free.fr/



"Jean" a écrit dans le message de news:
brvkvu$1f45t$
J'aimerais ouvrir un document PDF
à partir d'une macro.
Est ce possible ?
Merci
Guy




Avatar
Alain CROS
Bonjour.

Private Declare Function FindExecutable& Lib "shell32" Alias "FindExecutableA" _
(ByVal lpFile$, ByVal lpDirectory$, ByVal lpResult$)
Sub LancePDF(Fichier$)
Dim Exe$
Exe = Space(260&)
FindExecutable Fichier, vbNullString, Exe
Shell Left$(Exe, InStr(1, Exe, Chr$(0)) - 1) & " " & Fichier, vbNormalFocus
End Sub
Sub essai()
LancePDF "C:MonRepPDFMonFichier.pdf"
End Sub

Alain CROS.

"Jean" a écrit dans le message de news: brvkvu$1f45t$
J'aimerais ouvrir un document PDF
à partir d'une macro.
Est ce possible ?
Merci
Guy