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

ReplytoAll Warning



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 26th 06, 09:57 PM posted to microsoft.public.outlook.program_vba
sapphire
external usenet poster
 
Posts: 1
Default ReplytoAll Warning

I want a warning to display when the "Reply to All" is clicked.

I am adding the following code to "This Outlook Session":

Private Sub myItem_ReplyAll(ByVal Response As Object, Cancel As
Boolean)
Dim mymsg As String
Dim myResult As Integer
mymsg = "Do you really want to reply to all original recipients?"
myResult = MsgBox(mymsg, vbYesNo, "Flame Protector")
If myResult = vbNo Then
Cancel = True
End If
End Sub

However, it does not work. What am I missing?

Thanks for your help.

Ads
  #2  
Old June 26th 06, 10:30 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default ReplytoAll Warning

See my response to your post in another group, which I saw before this one.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"sapphire" wrote in message ups.com...
I want a warning to display when the "Reply to All" is clicked.

I am adding the following code to "This Outlook Session":

Private Sub myItem_ReplyAll(ByVal Response As Object, Cancel As
Boolean)
Dim mymsg As String
Dim myResult As Integer
mymsg = "Do you really want to reply to all original recipients?"
myResult = MsgBox(mymsg, vbYesNo, "Flame Protector")
If myResult = vbNo Then
Cancel = True
End If
End Sub

However, it does not work. What am I missing?

Thanks for your help.

 




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
Attachment Security Warning Ibentusa Outlook - Installation 1 June 8th 06 02:24 PM
Warning ID 1004 [email protected] Outlook - Installation 1 May 31st 06 08:13 AM
How to disable security warning? Richard Lewis Haggard Outlook - General Queries 2 April 4th 06 04:07 PM
Internet Security Warning.... Jeff Outlook Express 3 March 29th 06 08:13 PM
Add a meeting-ending tone, like a warning. Like warning before. Nicholas NFB Outlook - Calandaring 2 January 21st 06 09:28 PM


All times are GMT +1. The time now is 01:16 PM.


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