title: Distinguish visible and invisible attachments with Outlook VBA
body: <p>The requirement is to upload attachments to a server. However, we only want to upload those appears in the "Message" line (see pic below) of outlook, nothing else in the email body.</p>
  
  <p>Since Outlook itself knows which attachment should be show in the line, there must be information that it uses to distinguish them internally.</p>
  
  <p>So, how can I do that within my VBA program? I have tried to use <code>MailItem.Attachments</code> but all attachments are there and I cannot find any property of them can be used to distinguish.</p>
  
  <p><strong>UPDATE</strong>
  The original title "Distinguish embadded attachments with Outlook VBA" is a bit misleading. So I have changed the title.</p>
  
  <p>Outlook Screenshot:
  <img src="https://i.stack.imgur.com/tJBaM.png" alt="Outlook Screenshot"></p>