|
-
May 13th, 2005, 05:11 AM
#1
Thread Starter
Junior Member
How to launch Adobe PDF file from Excel
Please can anyone show me how to code a macro in Excel to launch a pdf file. As it will be installed on lots of PC's I do not want to have to specify the path to adobe exe file, just the pdf (which I will know the path to).
I have tried
Code:
Task_Manual = ShellExecute(Me.hwnd, vbNullString, ActiveWorkbook.Path & "\CT38 - SHS Joint Software Manual.pdf", vbNullString, "C:\", SW_SHOWNORMAL)
but get 'Invalid use of Me keyword' error message.
I am still learning VB so an example of code would be most helpful.
Many thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|