Quick sum up of what I'm trying to do. User has a folder in there inbox that they want to archive the messages to the project server as .msg format (in order to preserve any attachments the message might have). Got the basic's of the program working fine. Program takes each message in the specified folder and saves it to the specified project server with the "Subject" of the e-mail as the file name. However, I've run across an issue with any e-mails that were replied to. As I'm sure you are aware, the subject of most replied to e-mails end up looking like "RE: Project Email" (assuming the original subject e-mail was "Project Email"). As I'm also sure you are aware a : in a file name just won't fly. So if the program encounters a : the e-mail is never saved.
So here is my question, If I test the item.subject (that's the variable I'm using) for a : can I some how programatically REMOVE the : while keeping the rest of the subject in tact? Using the above example take the subject of "RE: Project Email" and have VBA change it to "RE Project Email"???
Thanks in advance!
So here is my question, If I test the item.subject (that's the variable I'm using) for a : can I some how programatically REMOVE the : while keeping the rest of the subject in tact? Using the above example take the subject of "RE: Project Email" and have VBA change it to "RE Project Email"???
Thanks in advance!