Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detecting MSOutlook

Status
Not open for further replies.

ajking

Technical User
Aug 13, 2002
229
I have an excel form which has a button that automatically emails the form but it only works if the user has msoutlook on their PC. is there code that will check to see if MSOutlook is present or not.TIA

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
ajking,

from ms vba help:
MailSystem Property Example

This example displays the name of the mail system that's installed on the computer.

Select Case Application.MailSystem
Case xlMAPI
MsgBox "Mail system is Microsoft Mail"
Case xlPowerTalk
MsgBox "Mail system is PowerTalk"
Case xlNoMailSystem
MsgBox "No mail system installed"
End Select

hth

regards,

longhair
 
thanks for the reply, that works to a degree but I was hoping for something that would differentiate between MSOutlook and Outlook Express. Any ideas?

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
ajking,

do a key word search for "outlook express" and then go to thread 707-276168, i think this is what you are looking for.

regards,

longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top