Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Launch Acrobat from Excel?

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Launch Acrobat from Excel?

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

"Philip Reece-Heal" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Launch Acrobat from Excel?

Brilliant

Many thanks for your trouble.

Philip

"quartz" wrote in message
...
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

"Philip Reece-Heal" wrote:

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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel and acrobat adobieversexcel Excel Discussion (Misc queries) 1 March 13th 07 10:05 AM
How to launch one XLA from another on Excel launch levka Excel Programming 1 July 25th 05 04:22 AM
how to re install Adobe Acrobat in Excel? The adobe Acrobat work. Execl error Excel Discussion (Misc queries) 1 March 17th 05 02:29 AM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
vb Excel to PDF in Acrobat 6 - need help pete451f Excel Programming 0 October 27th 04 07:52 PM


All times are GMT +1. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"