|
-
Feb 3rd, 2009, 10:05 AM
#1
Thread Starter
Don't Panic!
[Outlook 2003] VBA created email and clicking no/cancel
Easy question, just looking for confirmation.
I have a database that uses Outlook to send an email confirmation. If the user accidentally (or otherwise) clicks No or Cancel when outlook asks if this is a virus, does Outlook completely remove the email message that was created leaving no trace? No draft, no out box/sent/deleted/purge...
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Feb 4th, 2009, 07:06 AM
#2
Hyperactive Member
Re: [Outlook 2003] VBA created email and clicking no/cancel
hi, as far as i'm aware the mail item is not stored, i will test this for you later i am running a large process just now and cant run more code.
i'm sure that you can trap the user pressing cancel in the error handling of the sub creating the mail to iterate through and ask them again to send the mail.
will get back to you after lunch
David
-
Feb 4th, 2009, 09:42 AM
#3
Hyperactive Member
Re: [Outlook 2003] VBA created email and clicking no/cancel
hi,
you can trap the user pressing no using the error handler by using the below
vb Code:
Err_Handler:
Debug.Print err.Number, err.Description
If err.Number = 287 Then
MsgBox "I have experienced problems sending this message. Please remember to select 'OK' on the Outlook confirmation dialog box when it appears.", 48, "Message problems."
Exit Function
End if
Now when you get this you could always force it to reiterate infinitly(not good of course) or a number of times by using a counter
cheers
David
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|