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

Events



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 22nd 06, 08:26 PM posted to microsoft.public.outlook.program_vba
George Hester
external usenet poster
 
Posts: 54
Default Events

Does Outlook have an event for when a mailitem is sent to another folder
besides the Inbox folder. Say I use the New Mail event for the Inbox is
there something similar for an event when a mailitem goes into an arbitrary
folder? Thanks.

--

George Hester
_________________________________


Ads
  #2  
Old November 22nd 06, 08:36 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Events

Every folder's Items collection has an ItemAdd event.

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


"George Hester" wrote in message
...
Does Outlook have an event for when a mailitem is sent to another folder
besides the Inbox folder. Say I use the New Mail event for the Inbox is
there something similar for an event when a mailitem goes into an
arbitrary
folder? Thanks.

--

George Hester
_________________________________



  #3  
Old November 22nd 06, 09:38 PM posted to microsoft.public.outlook.program_vba
George Hester
external usenet poster
 
Posts: 54
Default Events

Thank you is that anything like an Action or something else?

--

George Hester
_________________________________
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Every folder's Items collection has an ItemAdd event.

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


"George Hester" wrote in message
...
Does Outlook have an event for when a mailitem is sent to another folder
besides the Inbox folder. Say I use the New Mail event for the Inbox is
there something similar for an event when a mailitem goes into an
arbitrary
folder? Thanks.

--

George Hester
_________________________________





  #4  
Old November 22nd 06, 10:21 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Events

I don't understand. It's an event exposed by the Items collection. You
handle it just as you would any other Outlook object event. Instantiate an
Items collection object for a folder declared WithEvents (if using VB) and
handle the event handler procedure.

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


"George Hester" wrote in message
...
Thank you is that anything like an Action or something else?

--

George Hester


  #5  
Old November 27th 06, 04:06 PM posted to microsoft.public.outlook.program_vba
George Hester
external usenet poster
 
Posts: 54
Default Events

Thanks Ken. Yes I saw that WithEvents as I was looking more into this. Got
it.

--

George Hester
_________________________________
"Ken Slovak - [MVP - Outlook]" wrote in message
...
I don't understand. It's an event exposed by the Items collection. You
handle it just as you would any other Outlook object event. Instantiate an
Items collection object for a folder declared WithEvents (if using VB) and
handle the event handler procedure.

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


"George Hester" wrote in message
...
Thank you is that anything like an Action or something else?

--

George Hester




 




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
Getting rid of duplicate events vs. Recurring events AK Outlook - Calandaring 1 September 29th 06 02:23 PM
1-Day Events randomly turn into 2-Day Events MJWUSTL Outlook - Calandaring 1 August 16th 06 06:25 PM
Item open events and double click events in exchange client extension. Fanxa Add-ins for Outlook 1 August 9th 06 09:18 AM
All Day Events and Recuring events Brian Outlook - Calandaring 0 August 4th 06 03:17 PM
Events won't maximize Ted Outlook - Calandaring 2 June 14th 06 01:25 AM


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