Application.ActiveInspector = Nothing
Posted on 2001-07-13
In Outlook, I want to work with the Item that has been selected by single clicking on it. The code below, does only work if an item has been opened. If an item has only been selected by single click, the code below, will set olInspector to Nothing. How do I get the item that are selected??
Dim olInspector As Outlook.Inspector
Dim olItem As Outlook.MailItem
Set olInspector = Application.ActiveInspector
If Not (olInspector Is Nothing) Then
Set olItem = olInspector.CurrentItem