Re: Capture Outlook Items' events in VBA?
- From: "John Riddle" <jriddleatsignwilsongroupnyperiodcom>
- Date: Tue, 12 Jul 2005 16:51:00 -0400
After going through the code very closely to see what was happening, I figured
out that I had named my regular module "OutlInsp" instead of "basOutlInsp"
like your instructions stated. I simply changed the line:
basOutlInsp.KillInsp m_intID, Me
To:
KillInsp m_intID, Me
and everything works great now.
Thanks!
John
"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message
news:%23hh8Gc$gFHA.1612@xxxxxxxxxxxxxxxxxxxxxxx
John, to handle multiple Inspectors or Explorers you need a wrapper class.
That class handles all the events for the Inspector or Explorer and is put
into a collection to keep the reference alive. See
http://www.slovaktech.com/code_samples.htm#InspectorWrapper for an example
of a VB 6 Inspector wrapper. The ItemsCB VB 6 sample on the Resources page
at www.microeye.com has an example of an Explorer wrapper in it.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"John Riddle" <jriddleatsignwilsongroupnyperiodcom> wrote in message
news:ulMHPO$gFHA.3868@xxxxxxxxxxxxxxxxxxxxxxx
> Okay. I tried that already but when doing it that way, I have no way to
> keep
> track of multiple open contacts. That's to say, switching between one
> contact
> and another does not fire the VBAInspector_Activate event. How can I work
> with
> several contacts switching between them and still fire the events...
> propertychange, custompropertychange, etc.?
>
> I have about 1000 lines of code behind my custom contact form and I need
> to
> move this to a VBA module for the moment and then once I verify that
> everything is working properly, I'll work on converting it to a Com Addin.
>
> Thanks,
>
> John
.
- References:
- Capture Outlook Items' events in VBA?
- From: John Riddle
- Re: Capture Outlook Items' events in VBA?
- From: Michael Bauer
- Re: Capture Outlook Items' events in VBA?
- From: John Riddle
- Re: Capture Outlook Items' events in VBA?
- From: Ken Slovak - [MVP - Outlook]
- Capture Outlook Items' events in VBA?
- Prev by Date: Re: Items.Get* Methods
- Next by Date: Recalling Item? What's it Id?
- Previous by thread: Re: Capture Outlook Items' events in VBA?
- Next by thread: Copying the macro to other computers
- Index(es):
Relevant Pages
|