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

Public Folder Notification



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old May 22nd 07, 07:39 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Public Folder Notification

The Folder Assistant has some features that can forward you a copy of the new
item or send a different message altogether. It cannot do Desktop Alerts or
dialog pop-ups though. For the latter you need to use VBA. You'd have to
set a module level reference for an Items collection object using the With
Events keyword. You'd also need to know the folder path or EntryID value to
set a reference to a MAPIFolder object from which you'd obtain the Items
collection object.

Once you have an Items object declared as above, there's an ItemAdd event
you can trap to do something when a message arrives. Note that this event
may not fire if a lot of items are delivered/saved at the same time. A more
reliable but more difficult event to trap would be the Application.NewMailEx
event.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Jarryd" wrote:

Hi,

How do you set a public folder to display notifications when an item is
added to it? I particularly want to set this so certain Outlook clients
receive notifications for certain public folders. I don't want the items to
be forwarded to the users' mailboxes - I want a messagebox to be displayed.
If I have to do this with VBA (ThisOutlookSession) then cool. But what
event do you use, and what is the basic code that you would use to do this.

TIA,

Jarryd



 




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
How to Sync Public Folder Contacts with Personal Folder Contact Li Larz Outlook - Using Contacts 0 May 14th 07 07:22 PM
Public Folder/Folder Assistant Forwarding email w/o original sender name xtremluck Outlook - General Queries 2 December 20th 06 08:57 PM
Copy email from local folder to public folder Andrew Outlook and VBA 0 November 16th 06 09:29 AM
Obtaining Folder Size in Public Folder Favourites Kentucky Outlook and VBA 0 September 7th 06 04:14 PM
activate contact folder from public folder with "show this folder as email address book using a prf file Frankie K. Outlook - Using Contacts 7 July 25th 06 05:37 PM


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