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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 17th 08, 04:53 AM posted to microsoft.public.outlook.program_addins
CK
external usenet poster
 
Posts: 33
Default Outlook 2003 Event

Hi all,

I am trying to get contact item information when user moves the particular
contact item to another folder. I have checked in MSDN library for the list
of event in Outlook 2003. The closest i can get is the ItemRemove event.

Public WithEvents myOlItems As Outlook.Items

Private Sub myOlItems_ItemRemove()
'Do something here
End Sub

The problem is that ItemRemove event does not have any parameter. Do you
know any event that work like ItemRemove event and have Item as parameter.

Thanks.


Ads
  #2  
Old January 17th 08, 07:17 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Outlook 2003 Event



Additionally you need to track the SelectionChange event, which tells you
what item(s) is/are selected. If you move or delete the last item from a
folder you don't get ItemRemove but only SelectionChange.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 16 Jan 2008 19:53:01 -0800 schrieb ck:

Hi all,

I am trying to get contact item information when user moves the particular
contact item to another folder. I have checked in MSDN library for the

list
of event in Outlook 2003. The closest i can get is the ItemRemove event.

Public WithEvents myOlItems As Outlook.Items

Private Sub myOlItems_ItemRemove()
'Do something here
End Sub

The problem is that ItemRemove event does not have any parameter. Do you
know any event that work like ItemRemove event and have Item as parameter.

Thanks.

  #3  
Old January 17th 08, 10:45 AM posted to microsoft.public.outlook.program_addins
CK
external usenet poster
 
Posts: 33
Default Outlook 2003 Event

Michael,

Thanks for the reply. I have looked at the SelectionChange event. I can get
the selected folder but not the selected item when i select one of the
contact item. Am I getting this correct? Do you have any example on how it is
done? I am kind of lost here.


"Michael Bauer [MVP - Outlook]" wrote:



Additionally you need to track the SelectionChange event, which tells you
what item(s) is/are selected. If you move or delete the last item from a
folder you don't get ItemRemove but only SelectionChange.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 16 Jan 2008 19:53:01 -0800 schrieb ck:

Hi all,

I am trying to get contact item information when user moves the particular
contact item to another folder. I have checked in MSDN library for the

list
of event in Outlook 2003. The closest i can get is the ItemRemove event.

Public WithEvents myOlItems As Outlook.Items

Private Sub myOlItems_ItemRemove()
'Do something here
End Sub

The problem is that ItemRemove event does not have any parameter. Do you
know any event that work like ItemRemove event and have Item as parameter.

Thanks.


  #4  
Old January 17th 08, 11:22 AM posted to microsoft.public.outlook.program_addins
CK
external usenet poster
 
Posts: 33
Default Outlook 2003 Event


Thanks Michael!

Well, i managed to get the contact item by using this piece of code:

Private Sub myOlExp_SelectionChange()
Dim myOlItems As Outlook.Items
Dim myOlContactItem As Outlook.contactItem
Dim objSelected As Object

If myOlExp.Selection.Count 0 Then
Set objSelected = Me.myOlExp.Selection.Item(1)
If (TypeOf objSelected Is Outlook.contactItem) Then
Dim contactItem As Outlook.contactItem
Set contactItem = objSelected
End If
End Sub

"ck" wrote:

Michael,

Thanks for the reply. I have looked at the SelectionChange event. I can get
the selected folder but not the selected item when i select one of the
contact item. Am I getting this correct? Do you have any example on how it is
done? I am kind of lost here.


"Michael Bauer [MVP - Outlook]" wrote:



Additionally you need to track the SelectionChange event, which tells you
what item(s) is/are selected. If you move or delete the last item from a
folder you don't get ItemRemove but only SelectionChange.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 16 Jan 2008 19:53:01 -0800 schrieb ck:

Hi all,

I am trying to get contact item information when user moves the particular
contact item to another folder. I have checked in MSDN library for the

list
of event in Outlook 2003. The closest i can get is the ItemRemove event.

Public WithEvents myOlItems As Outlook.Items

Private Sub myOlItems_ItemRemove()
'Do something here
End Sub

The problem is that ItemRemove event does not have any parameter. Do you
know any event that work like ItemRemove event and have Item as parameter.

Thanks.


 




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
Event ID 25- outlook 2003 calander HELP!!!!!!Please Angela Urbistondo Outlook - Calandaring 0 June 21st 07 04:00 PM
can you change a task to an event in Outlook 2003? Melissa Outlook - Calandaring 1 February 25th 07 09:17 PM
Event ID 25- outlook 2003 calander HELP!!!!!!Please matej.vostrak Outlook - Calandaring 1 October 5th 06 08:58 PM
Changes in Outlook 2003 event invitation format? jwyoung via OfficeKB.com Outlook - Calandaring 10 July 21st 06 11:41 PM
Outlook 2003 Event Reminder Unhides the Taskbar Sam Fertel Outlook - General Queries 0 March 13th 06 04:47 PM


All times are GMT +1. The time now is 09:24 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.