![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Is there a way to detect when a message has been read from a folder.
I try this Dim ol As Outlook.Application Dim ns As Outlook.NameSpace Dim WithEvents folders As Outlook.folders Private Sub Command1_Click() Set ol = New Outlook.Application Set ns = ol.GetNamespace("MAPI") Set folders = ns.GetDefaultFolder(olFolderInbox).folders End Sub Private Sub folders_FolderChange(ByVal Folder As Outlook.MAPIFolder) unread = Folder.UnReadItemCount End Sub It work fine with messages inside subfolders of Inbox, but not with the messages from Inbox. Also there's a way to detect which change triggered the event? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New one for me. Messages change from READ to UNREAD | JCollins | Outlook - General Queries | 8 | September 15th 06 04:52 AM |
In one profile, HTML forwarded messages read in plain text. | Peter Sydney | Outlook - General Queries | 1 | February 24th 06 11:22 PM |
count contacts | ems@drg | Outlook - Using Contacts | 1 | February 23rd 06 06:54 PM |
Junk E-mail folder stays in bold even after all messages marked as read | Ric | Outlook - General Queries | 7 | February 8th 06 01:53 AM |
Messages view as read before I get a chance to look at them | jp614 | Outlook - General Queries | 0 | January 9th 06 10:50 PM |