Hello
Is there a way to search only the new part of a message in Outlook 2007 AND 2003. I need a Macro that will ignore old strings in an email and only search within the new reply.
I set a macro to search for a word and then a hyperlink/attachment and "remind" me to add the hyperlink/attachment if it is missing, however, the word shows up in old parts of the email and the macro searches everything...I want only the current message to be searched.
Any thoughts?
I'm only guessing but I don't think that this is really possible. Email can be sent in a few different formats and I doubt they would all keep a history of when the text was added to each, if at all.
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
I agree with Dom, this is not something I have seen either.
I had a look at what you could do though.
If the user clicks on the "Reply" button then I think a mailItem will have a value in the "ReplyRecipients" property. Thus you could check this property to know if you are dealing with such an email.
Then when dealing with the body of this email you know that there could be multiple cases of the same searched item.
Here you could just take the first case.
Or are you in a company with something standard at the end of an email. You could find the position of this standard thing in the string (body of the email). Then do your search for your word. If you find the word then check its position in the body. If it is before your standard thing then it is ok.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks