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

event echo (event fires twice) vba/vb



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 9th 06, 02:16 PM posted to microsoft.public.outlook.program_vba
smanky
external usenet poster
 
Posts: 1
Default event echo (event fires twice) vba/vb

hi,

i am using an ItemChange(ByVal item As Object) event to let a msgbox pop up
once a task is completed. for some reason the event fires twice, once as
expected right after a task is completed, and another time after about 1
minute. i don't get it why it behaves like this....

i read somewhere that it might have to do with service packs, respectively
the order of installation of service pack and office. is this so? are there
any workarounds? i would love to avoid doing all the installation work on 15
machines....

oh, by the way, i have the same phenomenon with vb code that does the same.

thanks very much in advance.

~stephan

p.s. below is my code, since it is very basic and on one level it does what
i expect it to do, i assume that is more or less correct.

Public WithEvents myOlItems As Outlook.Items

Sub Application_startup()
Set myOlItems =
Application.GetNamespace("MAPI").GetDefaultFolder( olFolderTasks).Items
End Sub

Private Sub myOlItems_ItemChange(ByVal item As Object)
Dim unsers As Outlook.TaskItem
Set unsers = item
If unsers.Complete = True Then
MsgBox "hello world"
End If
End Sub

--
win xp, office 2003
 




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
Explorer closing before Item Add event fires?? AndyK Outlook and VBA 3 November 3rd 06 03:22 PM
Problem with CommandBarComboBox Change Event (Event fires only once) M. Khalid Farooq Add-ins for Outlook 1 October 19th 06 03:34 PM
getting calendar event reminder for deleted event [email protected] Outlook - General Queries 3 September 4th 06 03:11 PM
Change event to a repeating event John Marshall, MVP Outlook and VBA 1 July 27th 06 07:05 AM
can a calander event to automaticaly reply during the event? How DG at uei Outlook - Calandaring 1 April 28th 06 08:45 AM


All times are GMT +1. The time now is 12:53 PM.


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.