Sub Essai1()
ExecuteExcel4Macro "CALL(""user32"",""keybd_event"",""JJJJJ""," & &H11 & ", " & 0 & ", " & &H2 & ", " & 0 & ")"
CreateObject("Shell.Application").Open ThisWorkbook.Path & "\Essai.pdf"
End Sub
Sub Essai2()
On Error Resume Next
ExecuteExcel4Macro "CALL(""user32"",""keybd_event"",""JJJJJ""," & &H11 & ", " & 0 & ", " & &H2 & ", " & 0 & ")"
CreateObject("WScript.Shell").Run ThisWorkbook.Path & "\Essai.pdf"
End Sub