• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Can´t close a displayed email

rolo

Member
THE PROBLEM

I just need to do .display, .save and .close email (not send)
.display is important to let gmail recipients show embeded images
But it seems it is not possible to close an email if it has a previous .display code
How can I do a .display > .save > .close???


Code:
.Display 'This is important, must keep
.Save
.Close 'I need to close email (not outlook), but it does not work!


See attached example...Thanks!
 

Attachments

  • Mail for Dashboard Example chandoo.xlsm
    51 KB · Views: 2
Last edited:
Use...
Code:
  .Display
  .Close olSave

You need SaveMode argument when closing mailitem. As well, since it saves changes when being closed, no need to .Save beforehand.
 
Hi Chihiro,

I have tried your solution, but it closes Outlook application.

I just need to close displayed email, not outlook...

Is it possible?

Thanks!
 
Works fine my end. I.E. My Outlook instance remains open, only the message is displayed and then closed and saved in my drafts.

I doubt it's caused by the code. Try asking/looking in Outlook forum for people experiencing similar issue.
 
Back
Top