I am trying to create a button-controlled macro that would change the topic of an email message. Following this thread I\'ve managed to came up with this:
Pu
Answered thanks to @Ryan Wildry: if the email is edited in the explorer pane, use the .Display
method to force a pop-up and then work with it:
Dim Item As Outlook.MailItem
Dim oInspector As Inspector
Set oInspector = Application.ActiveInspector
If oInspector Is Nothing Then
Set Item = Application.ActiveExplorer.Selection.Item(1)
Item.Display 'Force the po-up
Set oInspector = Application.ActiveInspector 'Reassign oInpsector and Item again
Set Item = oInspector.CurrentItem
Else
Set Item = oInspector.CurrentItem
End If