J Jim/Chris Aug 11, 2004 #2 Her is a function Function runapp() On Error GoTo runapp_Err Call Shell("Path to PDF App" "Path to document""", 1) runapp_Exit: Exit Function runapp_Err: MsgBox Error$ Resume runapp_Exit End Function Jim
Her is a function Function runapp() On Error GoTo runapp_Err Call Shell("Path to PDF App" "Path to document""", 1) runapp_Exit: Exit Function runapp_Err: MsgBox Error$ Resume runapp_Exit End Function Jim
N new.microsoft.com Aug 12, 2004 #3 Hi Jim, I have keyed in this statement, it has "Run time error 53" which states "File not Found" Call Shell("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\acrobat.exe""C:\grade.pdf""", 1) can you help? Thanks again
Hi Jim, I have keyed in this statement, it has "Run time error 53" which states "File not Found" Call Shell("C:\Program Files\Adobe\Acrobat 5.0\Acrobat\acrobat.exe""C:\grade.pdf""", 1) can you help? Thanks again
M Mingqing Cheng [MSFT] Aug 12, 2004 #4 Hi, Thanks Jim for his great answer! From Jim's suggestions, the following codes runs well on my machine. Private Sub Command0_Click() Call Shell("c:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe c:\a.pdf", 1) End Sub Thank you for your patience and cooperation. If you have any questions or concerns, don't hesitate to let me know. We are here to be of assistance! Sincerely yours, Mingqing Cheng Microsoft Developer Community Support
Hi, Thanks Jim for his great answer! From Jim's suggestions, the following codes runs well on my machine. Private Sub Command0_Click() Call Shell("c:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe c:\a.pdf", 1) End Sub Thank you for your patience and cooperation. If you have any questions or concerns, don't hesitate to let me know. We are here to be of assistance! Sincerely yours, Mingqing Cheng Microsoft Developer Community Support