showing dialog box when closing the mail

  • Thread starter Thread starter pop up dialog box
  • Start date Start date
P

pop up dialog box

I open a mail and add an attachment and close the mail with discard
parameter. When mail is close i get the message prompt "Do you want to save?"

item.Attachments.Add(path of file);
item.close(1); here 1-> olDiscard

After close function outlook open dialog box which ask to save the message
or not. Please suggest how to discard this message.
 
The following script runs just fine for me with no prompts:

set msg = Application.CreateItem(0)
msg.Attachments.Add "c:\Temp\test.txt"
msg.Display
msg.close OlDiscard

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top