this was not really the solution as there is no afterupdate even defined in any reference material anywhere about outlook, vb, or vba. But, it did get me on the right track. I aplied the same idea when monitoring the inbox folder for new mails and just changed the name of the olfolderinbox to olfoldercalendar.
and then just called my function from there.
Main Topics
Browse All Topics





by: ChenChenPosted on 2004-01-14 at 19:53:58ID: 10117389
there is a "AfterUpdate" event with outlook calendar obj. write a function into that event to do the export. I think this event will get called not just as one is added, but as one is updated as well.
I wouldn't think you can trigger the export wizard in outlook with your code (I could be wrong); so you may have to do it by your own code, something like:
open file_path_name for output as #1
'go through each appointment in the calendar
print #1, you_csv_record
'loop it until finish
close #1
or you can use the file system object to write file, but it may have more overhead.
You may also want to take care about those appointments with recurrence, you will need to calulate all recurrences by youself.