Link to home
Start Free TrialLog in
Avatar of Thomas PAIK
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

Open in new window


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
Avatar of Michael B. Smith
Michael B. Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial