On 6 mar, 16:25, "MichD" <
michde...@hotmail.com> wrote:
> Bonjour,
>
> Il y a cette façon de faire :
>
> 'Dans le haut du module, déclaration de l'API
> Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
> (ByVal hwnd As Long, ByVal lpOperation As String, _
> ByVal lpFile As String, ByVal lpParameters As String, _
> ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
>
> '---------------------------------
> Sub Ouvrir_Un_Fichier()
> Dim Fichier As String
> Fichier = "C:\Chemin complet\Mon_Fichier.pdf"
> If Dir(Fichier) <> "" Then
> ShellExecute 0, "open", Fichier, "", "", 0
> End If
> End Sub
> '---------------------------------
>
> MichD
> ------------------------------------------
> "ThierryP" a écrit dans le message de groupe de discussion :