function to launch default app given filename

  • Thread starter Thread starter goodone
  • Start date Start date
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)
 
While Roy's answer is a very good way, even simpler would be:

Application.FollowHyperlink "c:\xyz.jpg"
 
Back
Top