You can create wrapper classes in VBA just as you can in VB or C#. You can
add instances of the classes to a collection in VBA to keep them alive. Just
create a new class and add your WithEvents declarations to the class so it
can handle events for the Inspector and item.
The main problem is using timers in VBA code. You'd need to use VB-type code
to create and handle a Win32 system timer. There are examples of that for
VB6 at
www.vbaccelerator.com, which can be adapted to VBA code.
"yves pion" <hotline@socetem.fr> wrote in message
news:utUq%23AX$KHA.4308@TK2MSFTNGP04.phx.gbl...
> Hello,
> thanks for your answer.
>
> one question about your sample code (wrapper class ) :
>
> Where must I put this code ?
>
> If it is in ComAddin, this won't help me because I already know that my
> ComAddin catch event when using SendTO.
> Could I put this wrapper class into outlook VBA ?
> Thanks.