Thread: Missing updates
View Single Post
  #6  
Old December 20th 06, 01:18 PM posted to microsoft.public.outlook.program_vba
boh
external usenet poster
 
Posts: 13
Default Missing updates

Hi Ken

I did as you said. When all my macro is comment out, I get debug prints as
wanted. I can see I’m doing some mistake when moving an item around. I want
to copy the item which is argument to ItemChange to the public folder, then
change some objects and save the appointment in the public folder but I can’t
figure out how to do. My copy stores in my local folder which means I get
another ItemAdd event. Please HELP.

boh

"Ken Slovak - [MVP - Outlook]" skrev:

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



Ads