Re: Capture Outlook Items' events in VBA?



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


.



Relevant Pages

  • Re: Capture Outlook Items events in VBA?
    ... 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 ...
    (microsoft.public.outlook.program_vba)
  • Re: Windows freezes after double clicking icons
    ... 'Not happy John! ... Defending our democracy', ... So with no explorer windows open there should be one explorer.exe in process. ...
    (microsoft.public.windowsxp.general)
  • Re: Unable to permanently delete default/example pics in My Pictures
    ... A customer of mine using XP ... is trying to multiple select by holding the Ctrl ... It's somewhat easier if you have your Folder ... John Inzer ...
    (microsoft.public.windowsxp.photos)
  • Re: Linking Forms
    ... "John W. Vinson" wrote: ... together so if I'm working on one specific employee record, ... General Info, ER Contacts, Benefits, Salary Hx, ... I'm assuming that one employee will have multiple ER Contacts, ...
    (microsoft.public.access.forms)
  • Re: Re-install explorer
    ... I even tried copying explorer from another computer ... John ... > criteria to Local Disk, Type explorer.exe in the search box, click ... > Hold down the Ctrl, Alt & Delete buttons to open Task Manager, click ...
    (microsoft.public.windowsxp.general)