Van Knowles
New Member
- Outlook version
- Email Account
- Exchange Server 2013
Hi. I've looked around the Internet a bit and have seen a lot of examples of Outlook VBA code using Attachment.DisplayName to save email attachments as files. However, my experience is that DisplayName (a) can have characters that are not valid for the Windows file system and (b) DisplayName does not include a file extension when the attachment is another email message (MSG format).
Some limited testing suggests that Attachment.FileName is the better choice because it appears to always be a valid Windows file name and always has an extension.
Does anyone have definitive information about the differences between these two properties of the Attachment object, especially any pitfalls to using FileName?
Thanks!
Some limited testing suggests that Attachment.FileName is the better choice because it appears to always be a valid Windows file name and always has an extension.
Does anyone have definitive information about the differences between these two properties of the Attachment object, especially any pitfalls to using FileName?
Thanks!