swisscheez
01-15-2008, 12:28 PM
Hello group - I've gotten stuck on an issue and I'm reaching out for help -
I have a main inbox (a) that has it's own pst file.
I have a 2nd mail file where I store archives (b), in a diff pst file.
I'm trying to write a vba macro that will read messages from A do some processing and them move them to B if they meet certain criteria.
I can do the first part and I know how to move messages within a particular file but when I try to reference a folder in B, I get a message telling me that outlook cannot find it.
I'm quite sure that there is a way to do this - and I'm probably just not declaring things correctly - does anyone have any examples that I could review where two different Outlook folders are referenced and controlled using vba?
I have a main inbox (a) that has it's own pst file.
I have a 2nd mail file where I store archives (b), in a diff pst file.
I'm trying to write a vba macro that will read messages from A do some processing and them move them to B if they meet certain criteria.
I can do the first part and I know how to move messages within a particular file but when I try to reference a folder in B, I get a message telling me that outlook cannot find it.
I'm quite sure that there is a way to do this - and I'm probably just not declaring things correctly - does anyone have any examples that I could review where two different Outlook folders are referenced and controlled using vba?