Filter message according to conversation in Outlook
Hi,
I'm trying to write a macro in Outlook. I want the macro to look at an email in the Inbox that is part of a (filed) conversation, determine which folder the rest of the conversation is in, and then move the new item to that folder also.
I can write out what I want the macro to do, I just don't know the right Outlook syntax...
Proposed code (written out in words):
sub
Set MoveMessage as SelectedMessage
For each Message in Conversation
If Message.FolderPath = "Sent" then next Message 'Ignore messages I've sent
If Message.FolderPath = "Inbox" then next Message 'Ignore messages still in the Inbox that haven't been filed
xFolder = Message.FolderPath
Exit loop
Next
SelectedMessage.Move to xFolder
End
Any help would be greatly appreciated, thanks in advance!
|