• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

how open pdf using vba macro


Hi !

Tip to open any kind of file with its default application :​
Code:
Sub DocOpen(PathFileExt$)
  On Error Resume Next
  CreateObject("WScript.Shell").Run _
  CreateObject("Scripting.FileSystemObject").GetFile(PathFileExt).ShortPath
End Sub
Enjoy and like it !
 
Back
Top