Launch Acrobat from Excel?

P

Philip Reece-Heal

Trying to launch Adobe Acrobat from a toolbar button in Excel and am having
difficulty with VBA code. Have tried:

Sub OpenAcrobat()
myfile = "C\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
Shell "Start" & myfile
End Sub

but keep getting 'File not found' error

Help gratefully appreciated

Philip
 
Q

quartz

Hi, the following worked for me:

Dim sAcrobat As String
sAcrobat = "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
Shell sAcrobat

I don't think you need: Start &

HTH
 
P

Philip Reece-Heal

Brilliant

Many thanks for your trouble.

Philip

quartz said:
Hi, the following worked for me:

Dim sAcrobat As String
sAcrobat = "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
Shell sAcrobat

I don't think you need: Start &

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top