Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Function UnwantedMessage(olkMsg As Outlook.MailItem) As Boolean 'On the next line edit the keywords/phrases you want to filter out. Use the | character to separate each word/phrase Const KEYWORDS = "Address change completed|Thank you for your interest in employment |Ad|Internet Explorer 8 Settings" Dim olkAtt As Outlook.Attachment, objRegEx As Object, colMatches As Object Set objRegEx = CreateObject("VBscript.RegExp") With objRegEx .IgnoreCase = False .Pattern = KEYWORDS .Global = True End With For Each olkAtt In olkMsg.Attachments If IsHiddenAttachment(olkAtt) Then Set colMatches = objRegEx.Execute(olkAtt.FileName) If colMatches.Count > 0 Then UnwantedMessage = True Exit For End If End If Next Set olkAtt = Nothing Set objRegEx = Nothing Set colMatches = Nothing End Function