• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1491
  • Last Modified:

Outlook 2007 - Mark Email in Folders/Sub-Folders as Automatically Read

I am using Outlook 2007. I have a series of folders and subfolders I sort messages into. Some of these messages are not being marked as read, even though I check that box in the Rules wizard.

Is there another way to monitor the folders and the sub-folders and mark any messages in there as read?

Thank you.

Shawn.
0
Shawn Janes
Asked:
Shawn Janes
  • 5
  • 3
1 Solution
 
Chris BottomleyCommented:
Hello shawnjanes,

Ideally you want to resolve the issue about the rules which I can't understand, (Assuming that's the only way that mails are moved there.  As a backup though it would be possible to do something with VBA to mark them automatically ... idf acceptable then please identify teh folder paths affected.

Regards,

chris_bottomley
0
 
Shawn JanesAuthor Commented:
I was getting ready to drop that information since I read some where else VBA would be an option.

Mailbox Name = Mailbox - Shawn Janes
Folder Path = GCA\00 Platform Emails - Automated\CFP Applications

Under the folder 00 Platform Emails - Automated there are 10 folders that need to be monitored.

Possible?
0
 
Chris BottomleyCommented:
These ten folders is it only the 10 or is it all folders under that parent

Chris
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
Chris BottomleyCommented:
BAsically if it is a variable then I believe each time a folder is added there will be some work ... if it is 'fixed' then we should be able to take care of it in one swoop.

Chris
0
 
Shawn JanesAuthor Commented:
The path for the 10 would be:

Mailbox - Shawn Janes\GCA\00 Platform Emails - Automated\ - the 10 folders would be under this last directory.

Make sense?

Shawn.
0
 
Chris BottomleyCommented:
Yes and the following can be used as follows:

1. At the top of thisoutlooksession, (after option statments IF present) place 10 lines as:

Dim WithEvents olkSpecial_1 As Outlook.items
...
Dim WithEvents olkSpecial_10 As Outlook.items

2. In the application_startup sub place 10 lines as:

    Set olkSpecial_1 = Session.folders("Mailbox - Shawn Janes").folders("GCA").folders("00 Platform Emails - Automated").folders("FOlder_1_Name").items
...
    Set olkSpecial_10 = Session.folders("Mailbox - Shawn Janes").folders("GCA").folders("00 Platform Emails - Automated").folders("Folder_Ten_Name").items

3. Create 10 subs somewhere, (can be thisoutlooksession if you want as:

Private Sub olkSpecial_1_ItemAdd(ByVal Item As Object)
    Item.UnRead = False
End Sub
...
Private Sub olkSpecial_10_ItemAdd(ByVal Item As Object)
    Item.UnRead = False
End Sub

Chris
0
 
Shawn JanesAuthor Commented:
Ok, maybe somewhere in here I gave the impression I know about the subs and all that, but I do not.

I do understand where this stuff is supposed to be copied to, but I am unsure about the 'application_startup sub' etc.

Would you mind elaborating please?

Shawn.
0
 
Chris BottomleyCommented:
To Create a macro:
------------------

Alt + F11 to open the macro editor

  For Applicationevent handlers:
     In the project tree select as appropriate:
      OUTLOOK      : thisOutlookSession
     In the workpane select as appropriate:
      OUTLOOK      : Application
     In the workpane place the event declarations below the option command IF present.
     In the workpane select the required 'event', (i.e. 'startup').
        Insert the required code from the supplied sub into the selected subroutine.
           
  For User Code, ( i.e. the 10 _itemAdd Subs):
     Insert | Module to insert a code module into the project
     In the project tree select the module.
     Insert the required macro(s) into the selected module, ('Module1' or similar)

Close the Visual Basic Editor.

Check Security as appropriate:
------------------------------

In the application select Tools | Macro | Security
2003 and Earlier : Select Medium
2007 : Warnings for all Macros
Select OK

Close outlook and re-open to instantiate the handlers.  If paths are correctly entered then it should work.  If not I may be unavailable till the morning but i'll respond then if still needed.

Chris
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now