Consulting

Results 1 to 2 of 2

Thread: avoid outlook message

  1. #1
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location

    avoid outlook message

    Hi there,

    Kindly advise me on how to avoid message like this: (see the attached)

    I found this simple code and trying to implement in my job.
    this code is working nice. However, i got a message in my outlook that ask me to choose "Yes or No" (please have a look into attachement).
    What I want is let send mail and ignore outlook message.


    Appreciate for your kind assistance.
    Rgds, Harto

    note:" I have been trap with application.displayalert = false" but doesn't work.
    [VBA]Sub Emailrange()
    ActiveSheet.Range("E8:J19").Select
    ActiveWorkbook.EnvelopeVisible = True
    Application.DisplayAlerts = False
    With ActiveSheet.MailEnvelope
    .Introduction = "This is a test."
    .Item.To = "zzz.com"
    .Item.Subject = "subject"
    .Item.Send
    End With
    Application.DisplayAlerts = True
    End Sub[/VBA]

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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