Hi guys,
Purpose of code:
selection multiple items(emails,meetings,etc) within an outlook mailbox and make a copy of those items on my computer(with some minor text edits to the body of the emails), each item is named with the date they were sent/received and their attachment's are separate out into a different folder.
(This means I have all the emails in the correct order, with no emails with the same subject deleting each other. this also means I can remove attachments from emails, so the filesize is small)
(Code seems to work on meetingitems, AppointmentItem, and mailitems, i havent tested for other mail item types)
However I believe I have found a problem:
I use "i02 = i02 + 1" and "ActiveExplorer.Selection.Item(i02)" and also ".copy". I believe that this combination of actions is the problem and I don't know how to fix it.
I use ".copy" to create an "original" of each item, and also edit each mail item because I want a desktop version of each email item that says what attachments it once held were.
I think the problems is occuring because my "selection" changes because whenever a "copy" is created, and becomes problematic when I run this code over multiple files.
Any ideas how I can fix this?
The second problem I have is, when I use this code one files one at a one, the selection jumps around from file to file, and makes it hard to determine if I can uses this code on every file or not.
Any ideas how i can also fix this second problem?
My Code:
Bookmarks