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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Monitor Folders recursively



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 23rd 09, 03:35 PM posted to microsoft.public.outlook
Wes Stahler
external usenet poster
 
Posts: 1
Default Monitor Folders recursively

I can monitor specific Outlook folders via the AddItem event.

Private WithEvents objProjectItems As Items

Private Sub Application_Startup()
Dim objNS As NameSpace
Set objNS = Application.GetNamespace("MAPI")
Set objProjectItems = objNS.GetDefaultFolder
(olFolderInbox).Folders.Item("Projects").Items
Set objNS = Nothing
End Sub

Private Sub Application_Quit()
Set objProjectItems = Nothing
End Sub

Private Sub objProjectItems_ItemAdd(ByVal Item As Object)
MsgBox "You added an item to the Projects Folder", vbOKOnly
End Sub

Now I need to do this recursively any suggestions?
Ads
  #2  
Old January 23rd 09, 06:54 PM posted to microsoft.public.outlook
Brian Tillman [MVP - Outlook]
external usenet poster
 
Posts: 4,874
Default Monitor Folders recursively

"Wes Stahler" wrote in message
...

I can monitor specific Outlook folders via the AddItem event.


Programming questions should be asked in one of the programming groups, like
microsoft.public.outlook.program_vba
--
Brian Tillman [MVP-Outlook]

 




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
Recursively set Auto Archive settings on a sub folder Tara H Outlook and VBA 2 January 9th 09 11:18 AM
Trying to loop through RDOFolders Recursively Bill Benson Outlook and VBA 3 September 24th 08 12:34 AM
Recursively searching outlook folders Magne Outlook - General Queries 0 March 21st 07 04:22 PM
Monitor Macro Running Vadhimoo Outlook and VBA 2 November 29th 06 06:13 AM
How to recursively clear all the filters applied to a folder Jean-Marc MOLINA Outlook - General Queries 1 March 30th 06 03:05 PM


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