title: Saving email attachments automatically with a specific subject title
body: <p>Hope someone can shed some light on to this for me.  </p>
  
  <p>I have written a script which should save an email attachment with a specific heading (I have this part specified in the rules section of outlook, or should it be written into the script?)  </p>
  
  <p>For some reason it isn't working.  Below is the script I have: -</p>
  
  <pre><code>Public Sub saveAttachmentTtoDisk(itm As Outlook.MailItem)
  
  Dim objAtt As Outlook.Attachment
  
  Dim saveFolder As String
  saveFolder = "C:/LocationOfFolderToSaveTo"
  For Each objAtt In itm.Attachments
      objAtt.SaveAsFile saveFolder &amp; "\" &amp; objAtt.DisplayName
      Set objAtt = Nothing
  Next
  End Sub
  </code></pre>
  
  <p>Can anyone see where  I have gone wrong.</p>