views:

243

answers:

0

Hi,

I have created an addin in outlook 2007. I want to show a form to a user to take a decision whenever a new appointment is created or any existing appointment is changed. This works fine . However when I have two calendars say Test and actual calendar and I go to View All appointment in test calendar, copy say around 20 to 30 appointments and paste them in actual calendar's "All Appointment items view", the form created by me start coming up once for each item. I introduced a global varibale to ensure that the form comes only once for this kind of bunch handling, however the variable is not gettting initialized for the next bunch. i.e. once the first bunch is over if I copy in the same fashion another bunch the application just behaves depending upon the decision I took for the first bunch. I want that global variable should be re-initilized for the next bunch but not clear where exactly I should do this.

Thanks