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.
Shawn JanesProject Manager | Sr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris BottomleySoftware Quality Lead EngineerCommented:
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 JanesProject Manager | Sr. DeveloperAuthor 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 BottomleySoftware Quality Lead EngineerCommented:
These ten folders is it only the 10 or is it all folders under that parent

Chris
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Chris BottomleySoftware Quality Lead EngineerCommented:
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 JanesProject Manager | Sr. DeveloperAuthor 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 BottomleySoftware Quality Lead EngineerCommented:
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 JanesProject Manager | Sr. DeveloperAuthor 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 BottomleySoftware Quality Lead EngineerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.