function to launch default app given filename

G

goodone

Hi, All, Access 07 VBA

Is there a function like Shell that will launch default app given file name?
Example: call <function>("c:\xyz.jpg") 'opens PCs default graphics
viewer/editor

Thank you!
Jim
(e-mail address removed)
 
D

Douglas J. Steele

While Roy's answer is a very good way, even simpler would be:

Application.FollowHyperlink "c:\xyz.jpg"
 

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