Open documents

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top