Get Selected Address Card programmatically

  • Thread starter Thread starter hoofy
  • Start date Start date
H

hoofy

Hello,

Is it possible to determine which contact is selected/highlighted fro
the Address Card View ie: without having the individual contact car
open?

Thank
 
Found it!

It is the Selection method on the Explorer object. I was using th
contacts folder Explorer.

Dim myOlApp As New Outlook.Application
Dim myOlExp As Outlook.Explorer
Dim myOlSel As Outlook.Selection
Dim MsgTxt As String
MsgTxt = "You have selected items from" & Chr(13) & Chr(13)
Set myOlExp = myOlApp.ActiveExplorer
Set myOlSel = myOlExp.Selection
For x = 1 To myOlSel.Count
MsgTxt = MsgTxt & myOlSel.Item(x).FullName & Chr(13)
Next x
MsgBox MsgTx
 
Back
Top