Warning messege

  • Thread starter 15DXnteZ16gg16LXmNeo15k
  • Start date
Status
Not open for further replies.
1

15DXnteZ16gg16LXmNeo15k

Hello to all,

I have Outlook 2003.

Working with Exchange 2003.

Anyone know how to write a script that will warn me every time i will try to

exit outlook? With a yes / no option to choose.

Thank you so much for your help

Amir :)
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
If you want to be able to cancel the closing of Outlook, you need to trap

the button clicks (File/Close), and subclass the click on the upper right

cross.

If you're looking for a ready-to-use solution, see OLKeeper on my website

Best regards

Michael Bauer
 
1

15DXnteZ16gg16LXmNeo15k

Hi there,

Thank you for your answer.

The olkeeper is wonderful, but it is abit expensive for me right now.

Can you explain (to a newbi) how can prevent closing outlook just with vba

code?

i do not need the minimize/close/canel options. i only need the abitlity to

keep outlook open.

Thank you anyway :)

Amir
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Here's an example that demonstrates how to track a commandbar button click.

Instead of 354 for the Reply button use 1891 for the Exit button:

http://www.vboffice.net/en/developers/delete-original-email-when-replying

In the click event use the MsgBox function to ask the user what he wants to

do. If the answer is "don't close Outlook", then set CancelDefault=True.

For the mentioned subclassing of the upper right cross I don't have an

example. That would be up to you.

Best regards

Michael Bauer

 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C WARNING - DO NOT USE AN OUTLOOK.COM ADDRESS FOR GOOGLE ACCOUNT RECOVERY EMAIL Using Outlook 10
A Warning When Opening attachment Using Outlook 7
M warning for too many appointments on a same day in Outlook Using Outlook 1
J Customize Attachement Security Warning Using Outlook 1
Diane Poremsky Meeting Location Warning Message Using Outlook 0
D Conflict warning while editing Exchange Server Administration 0
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments Using Outlook 0
Jack Poore Outlook gives warning using GO Contracts Sync Mod Using Outlook 4
M Rule to pop a warning dialogue on certain actions Using Outlook 1
Rory Campion Not getting a warning when a shared calendar item has been updated by someone else Using Outlook 2
B How do I get a warning before deleting e-mail messages? Using Outlook 2
J Disable outlook 2010 no-subject warning Using Outlook 4
E Disable outlook 2010 no-subject warning Using Outlook 9
T Missing attachment warning Outlook VBA and Custom Forms 1
T Warning message Outlook VBA and Custom Forms 3
F No Attachment Warning - VBA Code HELP Outlook VBA and Custom Forms 1
T How to get MailItem.Body without security warning in Outlook 2010 Outlook VBA and Custom Forms 2
H How turn off outlook security warning dialog box from outlook Outlook VBA and Custom Forms 1
P Stopping that security warning Outlook VBA and Custom Forms 1
D hide messege issue Using Outlook 1

Similar threads

Top