I am trying to get Excel 2003 to send e-mails using Outlook 2003.
Currently I have the following code, which works, but I'd like to improve if possible;
So it 'builds' the emails no problem, (once the user has clicked on the Outlook "A program is trying to aceess addresses" security box that I haven't found a way around ).
Then I discovered that I had to '.Display' the emails, as using '.Send' incurs a 5 second delay thanks to an Outlook Security warning, which then needs the [Yes] button clicking.
What I do now is display the message, wait one second, then use SendKeys to do Alt-S to send the e-mail. This may (or may not) cause the Spell checker to open (if check before sending has been selected in Outlook), so then I have to wait again, and then send the 'escape' key to close the spell checker, then wait another second, before then sending keys again to 'click' the [Yes] - Send the email even though the spell checker was closed before it was complete.
Like I said, it works, but I don't have a huge faith in its stability and I'm intrigued to know if there is another way around this.
Thanks
Bookmarks