Using Application wouldn't solve a problem of missing events, it just uses
the trusted Application object and is a good practice for all Outlook VBA
code.
You should not miss events when Outlook is updating the status bar and
waiting for a time between making a change and saving it should also not be
a factor. I'd probably comment out all my macro code and just write a debug
statement using Debug.Print to make sure the event handler was being called
first. Then after that got running I'd start in on why sometimes the event
was missed.
--
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
"boh" wrote in message
...
Hi Ken
Thanks for your answer.
I have removed “Dim myOlapp As New Outlook.Application” and replaced
myOlApp
with Application throughout. OK? The problem is still there.
I’m missing things when I click an appointment in my calendar, then move
the
start- or end-time and then click beside the appointment to save it. If
the
time between moving and clicking is less than 2 – 3 seconds, the
ChangeItem
event will not fire in about 5% of all attempts.
I think only one item is changed at one time and none of my macros are
running when the event should fire.
I have used a date in the past for testing and I get “This appointment
occurs in the past” in the bottom of the calendar. I think, but can’t
prove
it, that if I save my appointment during the time outlook is writing in
the
bottom of the calendar, then I will miss things?!?
boh