title: Replace special characters in filename when saving attachment
body: <p>I made a script to save attachments automatically and print them.</p>
  
  <pre><code>Sub SaveAttachment(Item As MailItem)
      If Item.Class = olMail Then
          If Item.Attachments.Count &gt; 0 Then
              Dim objAtt As Outlook.Attachments
              Set objAtt = Item.Attachments
              For Each objAttach In objAtt
                  objAttach.SaveAsFile "C:\PDFInvoices\" &amp; _
                          Item.Subject &amp; "_" &amp; objAttach.FileName '
              Next
              Set objAtt = Nothing
          End If
      End If
  End Sub
  </code></pre>
  
  <p>An attachment containing special characters such as <code>#</code> or <code>&amp;</code> makes the script crash.</p>
  
  <p>I want a way to replace, the special characters by something else.</p>