Hello Diane,
Yes, it converted to plain text but the HTML Format still there where the Raw Email Body contains < on it which is conflict on my pattern.
Regards,
Hi Diane,
Below is my new code. I just edited the pattern, and it is almost working. My concern right now is if the < has no space on the character, it did not forward to my email.
Public Sub FWItem(Item As Outlook.MailItem)
Dim Email As Outlook.MailItem
Dim Matches As Variant
Dim RegExp As...
Hi Diane,
Is it possible that instead of searching the < symbol on the email body, we will pop up the message using message box and the script will search it in the message box?
Regards,
Hi Diane,
I tried to add the Msgbox, and when a new message arrives, it shows up, but seems, it did not scan the email body as even there's a < symbol on it, it didn't forward the email.
Thank you,
Hi Diane,
I tried what you have suggested above. The good thing is, all email that I received is now converted to Plain Text but even the mail body contains <, it will now not forwarded to my email.
BTW, i used the code below for my pattern:
If TypeOf Item Is Outlook.mailitem and...
Hi Diane,
I applied your suggestion on my Macro Rule. Both are now working. However, even though there is no < symbol on the email body, it was still forwarding to my email.
Regards,
Hello Diane,
Thank you for your swift response. Yes, I want both <60 and < 60 to be forwarded. Will try your suggestion and will keep you posted.
Regards,
Hello All,
I'm having trouble coding Regex with vba
Can anyone help me with missing part to make the Outlook VBA script below work?
What I'm trying to do is filter the email body that contains a less than symbol <, it will forward to a specific email address.
Here is so far what I have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.