Re: How to load a PDF using Excel VBA
From: Bill Renaud (BNoSpamRenaud_at_Houston.rr.com)
Date: 04/20/04
- Next message: gav meredith: "RE: Alter existing code"
- Previous message: Rob van Gelder: "Re: Can RefEdit Contrl be Used on a Modeless Userform?"
- In reply to: James: "Re: How to load a PDF using Excel VBA"
- Next in thread: Dave Peterson: "Re: How to load a PDF using Excel VBA"
- Reply: Dave Peterson: "Re: How to load a PDF using Excel VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 05:39:06 GMT
I could not get this to work until I included the full path and name of the
Adobe Acrobat reader in the command along with the desired file name.
Apparently, Shell passes the whole string directly to the command engine
without looking up the association in the registry. This could be a problem
if you are going to try to run this on a variety of machines, since the
Adobe Reader may be in different subdirectories on every machine.
Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe C:\My
Documents\Test Page.pdf", _
vbNormalFocus
(You can replace the vbNormalFocus with vbMaximizedFocus or whatever value
you want for the window style.)
-- Regards, Bill "James" <anonymous@discussions.microsoft.com> wrote in message news:9CE36DE4-5C6F-4208-8ECA-DE3A3F697EC9@microsoft.com... > I tried before I submit the question. Failed. > > But thanks anyway. :> > > ----- Dave Peterson wrote: ----- > > Ahhh. > > maybe something like: > > Shell "start myfile.pdf" > > James wrote: > >> I want to open the PDF in Acrobat Reader, not importing it into Excel. But use Excel VBA. > >>> ----- Dave Peterson wrote: ----- > >> You could search google for pdf translators (to excel or to text files). Most > > are commercial ($). > >> You might get lucky and be able to copy each column and paste into excel (column > > by column)--from Adobe Reader. > >>>> James wrote: > >>> I mean, I got a PDF file. I want to use Excel VBA to open that PDF in Acrobat Reader. Just like when you double-click a PDF using the mouse. > >> -- > >> Dave Peterson > > ec35720@msn.com > > > > -- > > Dave Peterson > ec35720@msn.com >
- Next message: gav meredith: "RE: Alter existing code"
- Previous message: Rob van Gelder: "Re: Can RefEdit Contrl be Used on a Modeless Userform?"
- In reply to: James: "Re: How to load a PDF using Excel VBA"
- Next in thread: Dave Peterson: "Re: How to load a PDF using Excel VBA"
- Reply: Dave Peterson: "Re: How to load a PDF using Excel VBA"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|