0

Usually modifications to a mailitem is performed prior to display. However, special circumstances require a refresh after the mailitem is on display in order to accomodate post-display modifications made to it.

I tried putting multiple mailitem.display at different locations in my code, but it seems to work unreliably.

Any ideas are welcome.

Barok
  • 151
  • 12

1 Answers1

-1

You could called EMail Watcher, for example:

With oMail
    .To = addr
    .Subject = "CCAT eVSM Utilities License Code"
    .Body = "Message body"
    .Display
End With
Set CurrWatcher = New EmailWatcher
Set CurrWatcher.BoolRange = Range("G12")
Set CurrWatcher.TheMail = oMail

For more information, Please refer to this link:

VBA Outlook Mail .display, recording when/if sent manuall

Alina Li
  • 854
  • 1
  • 5
  • 5