thank you very much for your feedback
I had indeed one module which referenced a WithEvents object just like
yours.
What I find intriguing is that it worked fine for some time.
My problem began because I had digitally signed the macro and later I
removed the digital signature from the Security Dialog box in Outlook.
The next time the macro was run (as part of a New Mail rule), it asked me to
trust the digital signature, the the macro run a couple of times for two new
messages and then failed for the reamaining new messages..
From then on no more Macro.
To tell you even a more funny story, I have already rewritten all of the
code, but this time in a VB6 program (that gets a reference to the running
instance of outlook) and then created a new macro that simply called the
external VB6 program and passed the MessadeID as a command line argument (so
that we could find the message inside the VB program).
Sadly, this run fine but when I restarted the computer all the code was gone
AGAIN !!!!!!!.
I installed the new SP2 for office 2003 and after restarting, I started
getting the same message again "File not found".
I guess it's one thing to have a malfunction once, but this happening TWICE
is too much.
As of this point I find this UNBELIEVABLE. I already checked my hard disk
for bad sectors but it seems ok... so it's not a hardware failure.
The only time I can recall such kind of situations was with DOS and floppy
disks that would go bad again and again. I though we were over that but
perhaps I was wrong...
Good luck for your project.
If you are also having this kind of problems, you should look into
developing the code as an Outlook Add-in or even better a VS2005 managed
Outlook add-in.
I have been coding with vs 2005 beta 2 and I must say it's absolutelly
wonderfull. When I think that MS is already way ahead of the competition I
find new great features again and again.
best regards
Pedro
"Greg J" <frog66@flashmail.com> escreveu na mensagem
news:1127948637.317979.46630@o13g2000cwo.googlegroups.com...
|