Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long


Im trying to use this in an app to send an email with attachment using Outlook. Even though I normally use Outlook on my machine, this brings up Outlook Express (I previously used Outlook Express).

Is this because OE is somehow my default mail program? If so how do I change this back to Outlook?

It used to ask me if I wanted to change the default mail program when I would open OE or Outlook, but it doesnt anymore. I can open either one manually and never get the "do you want this to be your default ..." message.

Thanks for any help!