locked
i what to open the PDF file using inputbox in vba , RRS feed

  • Question

  • Private Sub CommandButton1_Click()

    dim filename as string

    filename = inputbox(" Enter the file name to open")

    mypath = "C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe"

    myfile = "C:\Documents and Settings\pdffolder\"

    Shell mypath & " " & myfile, vbNormalFocus


    End Sub

    Saturday, September 6, 2014 10:41 AM

Answers

All replies