|
|
|
|
Bonjour, je voudrai avoir un petit peu d'aide...
Voila, je voudrai en VB, lancer acrobat reader pour ouvrir un document PDF automatiquement. J'ai essayer avec la fonction Shell, mais elle ne sert qu'a executer des .exe.
Alors un grand merci a celui ou ceux qui pourront m'aider.
Si je n'est pas été assez clair dites le moi !
Répondre à Colin
|
Bonjour,
|
Tu peux utiliser ShellExecute :
Public 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 L'utilisation : ShellExecute 0&, vbNullString, &ActiveWorkbook.Path & "\test.pdf", MonParamètre, vbNullString, vbNormalFocus @+ |