1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

  2. 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


  3. 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

Discussion in 'VBA Macros' started by rolo, Jul 11, 2018.

  1. rolo

    rolo Member


    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 (vb):
    .Display 'This is important, must keep
    .Close 'I need to close email (not outlook), but it does not work!

    See attached example...Thanks!

    Attached Files:

    Last edited: Jul 11, 2018
  2. Chihiro

    Chihiro Excel Ninja

    Code (vb):
      .Close olSave
    You need SaveMode argument when closing mailitem. As well, since it saves changes when being closed, no need to .Save beforehand.
  3. rolo

    rolo Member

    Hi Chihiro,

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

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

    Is it possible?

  4. Chihiro

    Chihiro Excel Ninja

    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.

Share This Page