Hello Bondcrash,
This is a more reliable method.
Place this code in a Standard VBA Module
'Used to Find a window by Class or by Caption
Public Declare Function FindWindow _
Lib "User32.dll" _
Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Add this Code to your Macro
DoEvents
'Wait for Outlook Express window to show
If Subj = "" Then Subj = "New Message"
While Ret = 0
Ret = FindWindow(vbNullString, Subj)
Wend
'Wait 2 seconds before sending keystrokes (for settling)
Application.Wait (Now + TimeValue("0:00:02"))
'Send the email
Application.SendKeys "%s"
Sincerely,
Leith Ross
Bookmarks