+ Reply to Thread
Results 1 to 5 of 5

Mark email 'Read' in specific subfolder

  1. #1
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Mark email 'Read' in specific subfolder

    I have tried various vba codes sourced from various Internet forums on this common request, yet none are working. I'm sure part of this is due to my cobbled-together understanding of VBA. And most deal only with the primary Inbox and I don't understand how to modify them to point to a subfolder of the Inbox. (for 2010)

    I am wanting a macro(s) that will simply mark unread emails as Read for two scenarios:

    1) clicking a Quick Access button (tied to the macro) to Mark as Read messages within whichever Inbox/subfolder is currently selected.

    2) macro to Mark as Read a specific Inbox/subfolder which is hard-coded in the macro.


    If this is not the proper forum to request this, let me know.

    Thank you,
    Delain

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Mark email 'Read' in specific subfolder

    Please Login or Register  to view this content.
    To reference a subfolder.
    Please Login or Register  to view this content.
    To reference a non default Inbox.

    Please Login or Register  to view this content.
    To mark "Solved" go to Thread Tools.

  3. #3
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Mark email 'Read' in specific subfolder

    skatonni,

    Please accept my apology for not responding sooner to thank you for your reply.
    I had looked at it and meant to come back to work with the code, but got drawn away. I will let you know how it works out.

    Thank you,
    Delain

  4. #4
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Mark email 'Read' in specific subfolder

    I tested the first section of code just as you show, except that I had to remove 'Private' because I couldn't see the macro listed in the Developer tab for testing it.

    Outlook hangs up and I have to Ctrl-break so I can unfreeze it; not sure what is happening, but VBE shows the break or error at the Next statement.

    Please Login or Register  to view this content.
    I presume that is simply due to me interrupting the code.

    Was I supposed to do something that I'm supposed to already know how to setup?
    Does the code go into a standard Module or does it have to reside in the ThisOutlookSession module/Object?

    For marking subfolders, is the code going to be modified like this (snippet)?
    Please Login or Register  to view this content.
    With "HMA - Hugh" being a subfolder directly below my Inbox (Delain's Primary Email).

    Thank you,
    Delain

  5. #5
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Mark email 'Read' in specific subfolder

    Test in the VB Editor not by running strange code you get from the internet. Step through with F8 and see which item is a problem.

    You can learn how to debug here. http://www.cpearson.com/excel/DebuggingVBA.aspx

    The code goes in a standard module.

    Your modified subfolder code looks okay. Try it and see.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Always need to double click on the email to mark it as read
    By DURGESH88 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 12-16-2014, 03:41 AM
  2. [SOLVED] SubFolder search but for specific file type
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2014, 10:05 AM
  3. VBA code needed to move from Outlook 2010 subfolder to Symantec Vault subfolder
    By Marijke in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 12:14 PM
  4. Move categorized email from Inbox to a subfolder named exactly as the category
    By lennasaurus in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 11-20-2013, 03:24 AM
  5. [SOLVED] Mkdir command button to add subfolder/subfolder
    By frefry4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-17-2013, 06:28 PM
  6. Moving an e-mail from a subfolder in Mailbox to the equivalent subfolder in an archive PST
    By johncassell in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 11:31 AM
  7. Outlook, print pdf Save Attachment, Move Email To A Subfolder
    By stephen1000 in forum Outlook Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2009, 07:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1