Open documents

G

Guest

Hi all,
Please help. I have code that opens many different types of documents (XIF,
DWF, DWF, EXE, etc) Right now, I am trying to see what is installed on the
user's PC...

Since this is quite complicated for me, is there an easy way to open any
type of document through VBA (without looking at what is installed)?

Thanks a lot.
 
G

Guest

The easiest way is using the Application.FollowHyperlink Method.

Application.FollowHyperlink "c:\test.doc"
Application.FollowHyperlink "c:\test.xls"

It opens any type of document with the default associated software installed
on the computer.
 

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