![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have some VB code which I have recently started to modify and am getting
some wierd behaviour I cannot debug - I wonder whether anyone can suggest any causes? In the live version of the app, I trap the AppointmentItem_Write event, then the AppointmentItem_Close event, then the Items_ItemAdd event. This is all working OK. In the modified version, the Write & Close events are trapped OK but the Items_ItemAdd event appears to never fire - immediately after the Close event code completes, the Explorer_Close event fires for no apparent reason! The mods I have made must be the cause, but I can see no explanation in any of those changes... Thanks for any thoughts! |
Ads |
#2
|
|||
|
|||
![]()
Do you mean Inspector closing? Why would an Explorer close if you trap
events for an Inspector? You're going to have to show what code you're using and modifications you made. I can't see any reason for an Explorer to close based on the information provided. -- 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 "AndyK" wrote in message ... I have some VB code which I have recently started to modify and am getting some wierd behaviour I cannot debug - I wonder whether anyone can suggest any causes? In the live version of the app, I trap the AppointmentItem_Write event, then the AppointmentItem_Close event, then the Items_ItemAdd event. This is all working OK. In the modified version, the Write & Close events are trapped OK but the Items_ItemAdd event appears to never fire - immediately after the Close event code completes, the Explorer_Close event fires for no apparent reason! The mods I have made must be the cause, but I can see no explanation in any of those changes... Thanks for any thoughts! |
#3
|
|||
|
|||
![]()
Thanks for responding Ken.
I do mean the Explorer_Close event; I am trapping that in order to tidy up when the user has finished with the Calendar. But I can't see why the Explorer window is closing - I have not closed it either in code or manually. I have posted the current code and a screen dump of a VSS diff to http://homepage.ntlworld.com/elizabeth.walter/Calendar Code if you can be bothered to have a quick look I'd appreciate it! "Ken Slovak - [MVP - Outlook]" wrote: Do you mean Inspector closing? Why would an Explorer close if you trap events for an Inspector? You're going to have to show what code you're using and modifications you made. I can't see any reason for an Explorer to close based on the information provided. -- 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 "AndyK" wrote in message ... I have some VB code which I have recently started to modify and am getting some wierd behaviour I cannot debug - I wonder whether anyone can suggest any causes? In the live version of the app, I trap the AppointmentItem_Write event, then the AppointmentItem_Close event, then the Items_ItemAdd event. This is all working OK. In the modified version, the Write & Close events are trapped OK but the Items_ItemAdd event appears to never fire - immediately after the Close event code completes, the Explorer_Close event fires for no apparent reason! The mods I have made must be the cause, but I can see no explanation in any of those changes... Thanks for any thoughts! |
#4
|
|||
|
|||
![]()
I don't see anything offhand that would cause the Explorer to close, and
I've never seen that in any of my own code. I'd say you're going to have to check very carefully to see what was modified and step the code and see what's happening where. See what code line or lines are causing the Explorer to close. -- 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 "AndyK" wrote in message ... Thanks for responding Ken. I do mean the Explorer_Close event; I am trapping that in order to tidy up when the user has finished with the Calendar. But I can't see why the Explorer window is closing - I have not closed it either in code or manually. I have posted the current code and a screen dump of a VSS diff to http://homepage.ntlworld.com/elizabeth.walter/Calendar Code if you can be bothered to have a quick look I'd appreciate it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with CommandBarComboBox Change Event (Event fires only once) | M. Khalid Farooq | Add-ins for Outlook | 1 | October 19th 06 02:34 PM |
catch the mail item on_focus event | john | Outlook and VBA | 1 | September 28th 06 12:33 PM |
Item Open event does not occurs every time | sfradel | Add-ins for Outlook | 1 | September 2nd 06 04:33 PM |
Item Move event | AtulSureka | Outlook and VBA | 1 | February 24th 06 01:33 PM |
Trigger event on explorer right click (unselected item)? | james | Add-ins for Outlook | 5 | February 22nd 06 09:12 PM |