Open document using its default application

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
 
A

Albert D. Kallal

Just use:


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

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

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