Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Open PDF & RTF files from Excel

Perhaps this is simplistic, but how about taking a cell is Excel, then
manually creating a hyperlink to the file, then have the VBA code run that
hyperlink?
--
TTFN
JMMach

"Cleber P. de Souza" wrote in message
...
You can to test:
TaskID = Shell("C:\Program Files\Adobe\Acrobat 5.0\Reader\readme.txt", 1)

Cleber

"Chris" escreveu na mensagem
om...
I'd like to open PDF and RTF files from Excel. I've tried some codes
but don't work. Followings are my codes which DON'T WORK. Please give
me some advice.

For PDF:
TaskID = Shell("C:\Program Files\Adobe\Acrobat 5.0\Reader
readme.txt,1")

For RTF:

Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = New Word.Application
Set wrdDoc = wrdApp.Documents.Open(FileName)

I need to launch the application and the file. TKS!





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
emailing files from excel, the files will not go until I open up . joe New Users to Excel 2 September 18th 09 02:12 PM
how do I toggle between 2 open excel files and leave both open Big D in Brighton Excel Discussion (Misc queries) 1 November 6th 08 04:28 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
I cant open files unless I open the Excel program first ElaineAng Excel Discussion (Misc queries) 3 February 16th 06 02:54 PM
Can not open excel files without open application Taarfa Excel Discussion (Misc queries) 3 July 9th 05 11:56 PM


All times are GMT +1. The time now is 12:34 PM.

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"