A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Explorer closing before Item Add event fires??



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 06, 12:36 PM posted to microsoft.public.outlook.program_vba
AndyK
external usenet poster
 
Posts: 4
Default Explorer closing before Item Add event fires??

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  
Old November 2nd 06, 02:24 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Explorer closing before Item Add event fires??

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  
Old November 2nd 06, 10:22 PM posted to microsoft.public.outlook.program_vba
AndyK
external usenet poster
 
Posts: 4
Default Explorer closing before Item Add event fires??

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  
Old November 3rd 06, 02:22 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Explorer closing before Item Add event fires??

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.