How do I set a MailItem
variable to an active message being composed, if the message is not in its own window (i.e. within Outlook).
I have seen several answers that explain how to set the variable to an open window such as this:
Dim theEmail As MailItem, oInspector As Inspector
Set oInspector = Application.ActiveInspector
Set theEmail = oInspector.CurrentItem
This works when a message draft is a window not if the draft is within Outlook.
How can I reference an active draft that is not a new window?
I've seen posts saying Set theEmail = ActiveExplorer.Selection.Item(1)
however this references the received message being replied to, not the draft of the reply.