:)
I'm simply saying that the MSDN documentation does not seem to completely describe what is returned by FileName and DisplayName. Which, in my experience, is pretty typical.
I can say definitively that if you use DisplayName as the system file name when saving an attachment, as Microsoft...
I have been using VBA with checkpoints and displaying the names in the immediate window, so I know exactly what the property values are.
When you attach an email message, Outlook does, in fact, translate the message subject into a valid system file name with .MSG extension. I have observed...
Just experimenting with different messages and attachments, I found the following:
The DisplayName and FileName are usually the same.
If the attachment is itself an Outlook message (MSG file), then DisplayName shows the subject of the message, which might contain characters not valid for a file...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.