Activate the default email program

How can I activate the default email program from VB?? Can I do the same for words, excel, access, etc. ??
ppmbAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
James_stillmanConnect With a Mentor Commented:
You can do the same for word access and excel. You can also create these as objects inside your app if you wanted.

to start word

shell "start winword"  & filename
shell "start MSaccess" & filename
0
 
James_stillmanCommented:
Shell "start mailto:" & EmailAddress
0
 
James_stillmanCommented:
OOpps for forgot excel.

shell "start excel"  & filename

I'm sure U can see a pattern emerging here.........

0
 
James_stillmanCommented:
Right sorry for all of these different posts but.

This shell "start" & programName & filename only works if the item has a shortcut (I think). If the straight shell start does not work you can simply

Shell "ProgramsEXEPathAndFilename"

Oh and remeber to put a space in between the program name and the filename.

Hope this helps.

James :-)
0
 
ppmbAuthor Commented:
I think I posted the question for only less than 20 mins and you have answered it!
0
All Courses

From novice to tech pro — start learning today.