Outlook is not Excel, and you still haven't explained what you are trying to do. The suggested code will work in Outlook, but you are going to have to explain what you wish to filter and what EXACTLY is in the text file.