G
Garyj
Guest
Here is the code that I am running. How do I get the code to open either Acrobat 4 or Acrobat 5 if it does find one or the other.
Private Sub Command23_Click()
On Error GoTo Err_Command23_Click
Dim stAppName As String
stAppName = "C:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe x:\shared\jobg\acct\exhibit\acct4.pdf"
Call Shell(stAppName, 1)
Exit_Command23_Click:
Exit Sub
Err_Command23_Click:
MsgBox Err.Description
Resume Exit_Command23_Click
End Sub
Private Sub Command23_Click()
On Error GoTo Err_Command23_Click
Dim stAppName As String
stAppName = "C:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe x:\shared\jobg\acct\exhibit\acct4.pdf"
Call Shell(stAppName, 1)
Exit_Command23_Click:
Exit Sub
Err_Command23_Click:
MsgBox Err.Description
Resume Exit_Command23_Click
End Sub