+ Reply to Thread
Results 1 to 3 of 3

Distinguish Old messages from New reply

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    111

    Distinguish Old messages from New reply

    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?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Distinguish Old messages from New reply

    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.

  3. #3
    Registered User
    Join Date
    11-09-2008
    Location
    germany
    Posts
    74

    Re: Distinguish Old messages from New reply

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1