Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Outlook - Cancel Reply (2003)

    There's a useful piece of code on the MS website which traps the ReplyAll event and displays a warning asking if the user really wants to Reply to All. If answer is No, then Cancel = True, and the draft (reply) message does not open. That's just what I want.

    But this does not trap the situation where the user is viewing the Inbox Explorer and chooses Reply to All for the currently selected message. (If multiple items are selected, the Reply buttons are disabled.) There doesn't seem to be a ReplyAll event associated with an Explorer, and anything I try to rig up doesn't offer Cancel as a way of opting out.

    Any suggestions on how to get the functionality of the code below with Reply to All from an Explorer?

    Thanks,
    Richard Barrett

    Set myItem = Application.ActiveInspector.CurrentItem

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Outlook - Cancel Reply (2003)


  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Outlook - Cancel Reply (2003)

    Thank you. I had located the first one, but not the second, and it's very helpful. It gives me a headache, but I see if I can figure it out. Outlook is simply not my area of expertise, and I'm still learning.

    Richard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •