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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch Outlook Express instead of Outlook

Status
Not open for further replies.

Gwena

Programmer
Mar 11, 2004
42
IL
Hi Guys,
I'm Trying to send an email with outlook express and for some reason the ms_outlook is launched instead, although outlook express is set as the default e-mail program.
Maybe there is something wrong with my code?
Code:
Dim oo As New Outlook.Application
Dim ooi As Outlook.MailItem
Set ooi = oo.CreateItem(olMailItem)
ooi.Attachments.Add (strDocPath)
ooi.Display
Any suggestion?
 
Any idea? Yes. Your code is directly automating Outlook. The default email program setting isn't even a factor here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top