A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Identify response to Outlook Warning



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 7th 06, 04:02 PM posted to microsoft.public.outlook.program_vba
JT
external usenet poster
 
Posts: 41
Default Identify response to Outlook Warning

One of my macros assists users re-ordering supplies. On a list of available
supplies, they simply put an "X" in one column and the quantity in another.
Once they are finished with the list, they push an "Order" button.

The "Order" button makes a copy of the supply list, removes the items not
being re-ordered, attaches the spreadsheet to an e-mail, and sends the e-mail
to the supply center. When the e-mail is sent, Outlook automatically
generates a security warning message a program is trying to send an e-mail
and asks the user if this is okay. Most users click "YES" and the macro
completes the process normally. However, some users click "NO" and wonder
why they never receive their supplies.

To alleviate this problem, I would like the macro to identify when a user
clicks "NO" and produce a warning message to push the order button again.

My question is: since this is a message automatically generated by Outlook,
can I identify whether the user has clicked "YES" or "NO"? I have done this
before with a message box but since this is generated by Outlook, I'm not
sure how to get started. Any help or code you could provide would be greatly
apprecdiated. Thanks.

--
JT
Ads
  #2  
Old August 7th 06, 09:00 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Identify response to Outlook Warning

What API are you using to send the message? If you are using the Outlook
Object Model, MailItem.Send will raise an E_ABORT (0x80004004) error which
you can trap.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"JT" wrote in message
...
One of my macros assists users re-ordering supplies. On a list of
available
supplies, they simply put an "X" in one column and the quantity in
another.
Once they are finished with the list, they push an "Order" button.

The "Order" button makes a copy of the supply list, removes the items not
being re-ordered, attaches the spreadsheet to an e-mail, and sends the
e-mail
to the supply center. When the e-mail is sent, Outlook automatically
generates a security warning message a program is trying to send an e-mail
and asks the user if this is okay. Most users click "YES" and the macro
completes the process normally. However, some users click "NO" and wonder
why they never receive their supplies.

To alleviate this problem, I would like the macro to identify when a user
clicks "NO" and produce a warning message to push the order button again.

My question is: since this is a message automatically generated by
Outlook,
can I identify whether the user has clicked "YES" or "NO"? I have done
this
before with a message box but since this is generated by Outlook, I'm not
sure how to get started. Any help or code you could provide would be
greatly
apprecdiated. Thanks.

--
JT



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify Outlook 2003 mail delivery location BY Outlook and VBA 1 May 16th 06 04:34 PM
How to identify identity of sender? hringley Outlook - Using Contacts 1 May 16th 06 02:58 PM
How to identify pst file format wether outlook 2000 or 2003 Prakash Tulsiani Outlook - Installation 1 April 6th 06 10:02 PM
how to identify distribution list a contact is on cgarcia Outlook - Using Contacts 3 February 20th 06 06:31 AM
Add a meeting-ending tone, like a warning. Like warning before. Nicholas NFB Outlook - Calandaring 2 January 21st 06 10:28 PM


All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.