Open document using its default application

  • Thread starter Thread starter Diarmuid
  • Start date Start date
D

Diarmuid

Hi
I want users to be able to type in a document thats associated with a
employee. For example , a word document or a bitmap. I know the Shell
function lets me run an external app, but I have to specify which one and
know the path of the exe. I want to the do the same as Windows Explorer
does, open the file using the appropiate application - either Word or paint
in the example above.
Thanks
Diarmuid
 
Just use:


application.FollowHyperlink "c:\my documents\test.xls"

The above opens any file via the association...and no api..and no funny
stuff....
 
Back
Top