Thomas PAIK
asked on
Outlook explorer instance having a unique ID
Private WithEvents MyExplorers As Outlook.Explorers
' How do I assign each MyExplorers instance with an ID, say oEXP1, oEXP2, oEXP3, ..., oEXPN?
Private WithEvents MyItem As Outlook.Items
Private Sub MyItem_ItemAdd(ByVal Item As Object)
' this event runs only when an explorer instance oExp1 exists (active or not active)
End Sub
Private Sub Macro1()
' this macro runs only when an explorer instance oEXP2 exists
End Sub
Private Sub Macro2()
' this macro runs only when an explorer instasnce oEXP3 exists
End Sub
I believe the above VB code is pretty self-explanatory, but how do I identify/detect each outlook explorer instances that is run, preferably by some unique ID?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.