Hello again,
I'm trying my luck again with another question... Hopefully this one is easier to solve
My VB6-OL2003-Addin needs to know when an inspector gets activated.
I declared these two, to catch some events:
Now I can do that:
which makes me able to do that:
BUT:
If the user opens multiple inspectors - only the last one will receive the Activate-event. If he decides to switch to one of the other inspector my addin won't notice it.
I played a bit around with arrays, - but I couldn't figure out how to do it.
Any ideas?
tia
Harry
I'm trying my luck again with another question... Hopefully this one is easier to solve
My VB6-OL2003-Addin needs to know when an inspector gets activated.
I declared these two, to catch some events:
Code:
Public WithEvents myOlInspectors As outlook.Inspectors
Public WithEvents myOlInspector As outlook.Inspector
Now I can do that:
Code:
Private Sub myOlInspectors_NewInspector(ByVal Inspector As outlook.Inspector)
Set myOlInspector = Inspector
End Sub
which makes me able to do that:
Code:
Private Sub myOlInspector_Activate()
'act on activation
'code code code
'code code code
'code code code
End Sub
BUT:
If the user opens multiple inspectors - only the last one will receive the Activate-event. If he decides to switch to one of the other inspector my addin won't notice it.
I played a bit around with arrays, - but I couldn't figure out how to do it.
Any ideas?
tia
Harry