title: Search Multiple file extension
body: <p>I have a vba syntax which search for only pdf files.I wanted to know what changes do I need to make in the below code so that it can search docx and similar ext files as well.</p>
  
  <pre><code>If pfile &lt;&gt; "" And Right(pfile, 3) = "pdf" Then
  Set obMail = Outlook.CreateItem(olMailItem)
  </code></pre>