Hi, I'm new to macros and VBA so this question may be very basic.
When catching up on emails in my inbox, I would like a way to filter through those which ask me to do something and not those that are meant for someone else copied on the email. Searching for emails where I am in the To: field doesn't work for this purpose because people sometimes include me in the To: field even when they are asking someone else to do something, and sometimes people leave me in the CC: field even when they are asking me to do something. The best way to filter the email would be to see if the email has my name in the body of the message.
However, the problem is that nearly every email contains the text from the previous emails on the chain, and my name appears either in the body of those emails, or in the email addresses listed in the To: field from the previous emails which now appear in the body of the new email. As far as I am aware, Outlook considers the prior emails on the chain as part of the body of the new email and there is no way to filter based on text in the last email alone.
One possible solution I thought of would be to search for my name but to tell Outlook to exclude from the search any hits that appear in the body after the words "From:" or "wrote:". This should work because even if my name is mentioned in prior emails on the chain, they would appear in the body of the new email after those words (since the older emails on the chain begin with From: or "[somebody] wrote:".
I believe there is no way to conduct such a search (and create such a rule/filter) using Outlook's search tools. Is this something that would be possible using a macro and then I could create a filter or smart folder for emails in my inbox matching this search rule?
Thanks!!
When catching up on emails in my inbox, I would like a way to filter through those which ask me to do something and not those that are meant for someone else copied on the email. Searching for emails where I am in the To: field doesn't work for this purpose because people sometimes include me in the To: field even when they are asking someone else to do something, and sometimes people leave me in the CC: field even when they are asking me to do something. The best way to filter the email would be to see if the email has my name in the body of the message.
However, the problem is that nearly every email contains the text from the previous emails on the chain, and my name appears either in the body of those emails, or in the email addresses listed in the To: field from the previous emails which now appear in the body of the new email. As far as I am aware, Outlook considers the prior emails on the chain as part of the body of the new email and there is no way to filter based on text in the last email alone.
One possible solution I thought of would be to search for my name but to tell Outlook to exclude from the search any hits that appear in the body after the words "From:" or "wrote:". This should work because even if my name is mentioned in prior emails on the chain, they would appear in the body of the new email after those words (since the older emails on the chain begin with From: or "[somebody] wrote:".
I believe there is no way to conduct such a search (and create such a rule/filter) using Outlook's search tools. Is this something that would be possible using a macro and then I could create a filter or smart folder for emails in my inbox matching this search rule?
Thanks!!