Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default to open a pdf file from a macro in excel

With the code below i can open adobe acrobat 7 from within excel with a macro
but what i want to do is open a particular adobe pdf file from my documents
folder i
added the code in brackets , adobe opened but said file not found. Any help
appreciated

Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe ( C:\Documents
& Settings\My Name\My Documents\MyFile.pdf)",vbNormalFocus

--
BD3
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default to open a pdf file from a macro in excel

Hi,

Try it without the brackets - it seems to work with me. I have full adobe
though, but i dont see why that should make too much of a difference.

i used

Shell "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe C:\Documents
and Settings\My Profile\My Documents\mypdf.pdf", vbNormalFocus

HTH

Mark

"bigdaddy3" wrote:

With the code below i can open adobe acrobat 7 from within excel with a macro
but what i want to do is open a particular adobe pdf file from my documents
folder i
added the code in brackets , adobe opened but said file not found. Any help
appreciated

Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe ( C:\Documents
& Settings\My Name\My Documents\MyFile.pdf)",vbNormalFocus

--
BD3

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
Open Excel file from VB and open MACRO no1jimmyman Excel Discussion (Misc queries) 0 February 14th 11 10:10 PM
Open a file do a macro ( made) and open next succesive file SVTman74 Excel Programming 5 April 21st 06 10:14 PM
How do I open an Access file with a macro in Excel? gaitkeeper Excel Programming 1 May 26th 05 10:06 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
excel open file macro doug Excel Programming 3 May 27th 04 02:00 PM


All times are GMT +1. The time now is 05:22 PM.

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

About Us

"It's about Microsoft Excel"