how to know which item is double clicked?

G

Guest

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
 
G

Guest

i know how to solve it.

As simple as


Private Sub myInspectors_NewInspector(ByVal Inspector As Inspector)

MsgBox. (Inspector.CurrentItem.FullName)

End Sub

Bear with my stupid question!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top