L
lostwings
Hi,
I met a problem of tracking which item is selected by the user. For
instance, when I double click a contact item under the contact folder, a new
inspector window should be poped out.
So I tried to track the selected item information in the "NewInspector"
event handler. However, it seems that at the time "NewInspector" is raised,
the outlookApp.ActiveInspector is still the previous one, not the current
selected one. Following is the snippet, which try to msgbox out the FullName
of the selected contact item. But it cannot capure the right information. Any
idea of how to solve the problem would be greatly appreciated.
Private Sub myInspectors_NewInspector(ByVal Inspector As Inspector)
MsgBox
(ThisOutlookSession.Application.ActiveInspector.CurrentItem.FullName)
End Sub
I met a problem of tracking which item is selected by the user. For
instance, when I double click a contact item under the contact folder, a new
inspector window should be poped out.
So I tried to track the selected item information in the "NewInspector"
event handler. However, it seems that at the time "NewInspector" is raised,
the outlookApp.ActiveInspector is still the previous one, not the current
selected one. Following is the snippet, which try to msgbox out the FullName
of the selected contact item. But it cannot capure the right information. Any
idea of how to solve the problem would be greatly appreciated.
Private Sub myInspectors_NewInspector(ByVal Inspector As Inspector)
MsgBox
(ThisOutlookSession.Application.ActiveInspector.CurrentItem.FullName)
End Sub