View Single Post
 
Old 09-05-2016, 01:25 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The following should help you get started.

Code:
Sub MoveToRead()
Dim olMsg As MailItem
Dim olStore As Store
Dim olFolder As Folder
    On Error Resume Next
    Set olMsg = ActiveExplorer.Selection.Item(1)
    For Each olStore In Session.Stores
        If olStore.DisplayName = "Personal Folders" Then    'the name of the root folder
            Set olFolder = olStore.GetRootFolder.folders("Read")    'a folder directly off the root
            olMsg.Move olFolder
            Exit For
        End If
    Next olStore
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote