Private 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 Private Sub Command1_Click() ShellExecute 0, "open", App.Path & "/test.pdf", vbNullString, vbNullString, 0 End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question