how to cancel reminder dialog when use item.send ? RRS feed

  • Question

  • Dear all

        I have to click YES button when use item.send .how to cancel reminder dialog ?  very thanks for your help

    Sub send_mail(w, zt, note, PAT)
    c = 68
    Dim outl As Object
    Dim mai As Object
    Application.DisplayAlerts = False
    Set outl = CreateObject("outlook.application")
    Set mai = outl.createitem(olmailitem)
        With mai
            .To = w
            .Subject = zt
         .htmlbody = "<HTML><H2>Dear all</H2><br><BODY>" & note & "</BODY></HTML>"

        .Send  ' there will be a reminder dialog , have to click YES button
        End With

    Set mai = Nothing
    Set outl = Nothing
    End Sub

    Thursday, July 4, 2013 3:14 AM


  • I don't understand - why do you expect the Reminders dialog to fire immediately after your email is sent?  That shouldn't happen at all.  Or is this some other dialog?  Is it the Object Modal Guard dialog warning the user that code is trying to send email?  If it is, there's a range of options:

    Eric Legault (MVP: Outlook)
    About me...
    Outlook Appins: Store Social Media fields in your Outlook Contacts!

    • Marked as answer by ella_wu Friday, July 5, 2013 7:57 AM
    Thursday, July 4, 2013 5:19 PM