PDA

View Full Version : Solved: Number of attached (actual) files?



next
06-20-2012, 01:07 PM
How do I get the count for actual attachments? currently I'm using this:
If item.Attachments.Count > 1 Then
For Each x In item.Attachments
Debug.Print x.FileName
Next x
End If
the problem is, if the email has pictures if the body, they count as attachments as well. I can't use file extension as a conditional, because files can be sent as image files as well.
Does anyone know a solution to this?

next
06-20-2012, 01:54 PM
fixed it. x.position is always equal to 0 for actual attachments.