Issues regarding AppointmentItems and multiple accounts.

tode713
tode713 used Ask the Experts™
on
I have something strange happening and I cannot put my finger on where things go wrong. Basic scenario: UserA creates an appointment item via a macro. It is an olMeeting and has ResourceB (dummy account configured as a resource with autoaccept, etc). The meeting is saved and this part works flawlessly. ResourceB's calendar is shared with UserC. UserC selects the appointmentitem and executes a new macro that is meant to open the appointment, give UserC the ability to edit it via a form and then add Recipient(s). What is happenening is on UserA's calendar, the organizer and resource are correct, but the recipient added by UserC isn't listed. The Meeting on ResourceB's calendar has all information correct. The added recipient gets an appointment where ResourceB is listed as both the Organizer and a recipient. I am working in Outlook 2007 but everything will need to be compatible with 2003.

Any ideas of what could be happening? The code is rather lengthy but all executes without error. I have debugged to make sure the appointmentitem is being found correctly and and i am adding recipients, resolving them, then editing the type to olRecipient. I am not changing the organizer anywhere and I was under the impression it wasn't really possible in 2003. Another weird side effect of all this is changes made on the original appointment update to the resource, but not the final recipient. Changes made on the other end update on the resource, but not the true organizer. My best guess is that by opening the appointmentitem as a resource, then making changes and executing the .send, I am actually taking the organizer role on requests sent out. All three calendars show only one appointmentitem so it seems that I am not getting any duplication. I was hoping someone has run into this before and help me pinpoint where I am going wrong with my logic. If code is necessary, I can post.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
If only three computers are affected, try this on each of the three:
Close Outlook, click Start->Run, type Outlook /cleanprofile
If that doesn't do the trick then recreate the Outlook profile. Profile corruption is the source of many strange behaviours in Outlook.
You may first want to save away the address cache (the .nk2 file) which contains the addresses the user has prevoiusly sent successfully. You find the .nk2 file here (XP):
C:\Documents and Settings\<user>\Application Data\Microsoft\Outlook
(Vista: C:\Users\{username}\AppData\Roaming\Microsoft\Outlook)
If you do not know how to recreate a profile: http://www.howto-outlook.com/faq/newprofile.htm
After recreating the profile you can restore the .nk2 file to the same location assuming you used the same name for the new Outlook profile.

Author

Commented:
I am still just testing this code and have yet to put it into the production environment.
I will put it out on a couple of machines and see if that changes any of the behavior I am seeing in the test environment.

Author

Commented:
Well I moved the code into production and the problem disappeared and handled organizer properly.  Wasn't exactly your answer, but I can't give myself the points. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial