Consulting

Results 1 to 4 of 4

Thread: Filter Unread mails / arrange by date / from

  1. #1
    VBAX Regular
    Joined
    Nov 2018
    Posts
    14
    Location

    Lightbulb Filter Unread mails / arrange by date / from

    Is there special shortcuts to filter unread mails / arrange mails by date / from (shortcut for each one) in Outlook 365? I couldn't find any shortcut for these actions.

  2. #2
    VBAX Regular
    Joined
    Nov 2018
    Posts
    14
    Location
    If there is no built-in shortcut for such actions, won't VBA help?

  3. #3
    VBAX Mentor skatonni's Avatar
    Joined
    Jun 2006
    Posts
    347
    Location
    Go to the Unread Mail folder.

    Option Explicit
    
    Private Sub Folder_EntryID()
    
       ' This puts the EntryID of the current folder into the immediate pane of the VBA editor
        Debug.Print ActiveExplorer.CurrentFolder.entryID
    
    End Sub
    
    Sub GoTo_AnyFolder()
    
        Dim myNameSpace As Namespace
        Set myNameSpace = GetNamespace("MAPI")
        Set ActiveExplorer.CurrentFolder = _
            myNameSpace.GetFolderFromID("EntryID of any folder.")
            
    End Sub
    To debug, mouse-click anywhere in the code. Press F8 repeatedly to step through the code. http://www.cpearson.com/excel/DebuggingVBA.aspx

    If your problem has been solved in your thread, mark the thread "Solved" by going to the "Thread Tools" dropdown at the top of the thread. You might also consider rating the thread by going to the "Rate Thread" dropdown.

  4. #4
    VBAX Regular
    Joined
    Nov 2018
    Posts
    14
    Location
    Quote Originally Posted by skatonni View Post
    Go to the Unread Mail folder.
    Thanks for the help. Appreciated.

Posting Permissions

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