Question : Outlook VBA to move emails

Hi

I want to write an Outlook macro that moves any chosen email from the inbox to a particularly folder - what code would I need

Cheers

Ken

Answer : Outlook VBA to move emails

No the majority is concerned with the navtofolder so that the folder to which the mail is moved can be any folder in the PST.

Am I missing somethingin the nature of the question?

Chris
1:
2:
3:
4:
5:
6:
7:
8:
9:
Sub movemail()
Dim maiCount As Integer
Dim fldr As Folder
 
    Set fldr = application.getnamespace("MAPI").getdefaultfolder("olfolderinbox")
    For maiCount = Application.ActiveExplorer.Selection.count To 1 Step -1
        Application.ActiveExplorer.Selection.Item(maiCount).Move fldr
    Next
End Sub
Open in New Window Select All
Random Solutions  
 
programming4us programming4us