Consulting

Results 1 to 3 of 3

Thread: Select/mark mail in Outlook folder using VBA

  1. #1
    VBAX Newbie
    Joined
    Mar 2022
    Posts
    4
    Location

    Question Select/mark mail in Outlook folder using VBA

    Hi,
    I am using a VBA macro to loop through an Outlook folder (and subfolders, if present). How can I achieve that one specific mail is selected in Outlook explorer when the macro finishes?
    Thanks for any help.

  2. #2
    Quote Originally Posted by Burkhard View Post
    How can I achieve that one specific mail is selected in Outlook explorer when the macro finishes?
    What 'specific mail' would that be?
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    VBAX Newbie
    Joined
    Mar 2022
    Posts
    4
    Location
    When VBA loops through a folder, the mails are checked for different criteria. If a mail meets some (or all) of them, the macro should stop and that mail should be selected (in Outlook), so that the user can decide what to do next. (This somewhat strange procedure is necessary, because not all Outlook actions can be executed within VBA - e.g. opening an encrypted mail.)

Tags for this Thread

Posting Permissions

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