'Display Name' Property for Attachments.Add Method

  • Thread starter Thread starter David C. Holley
  • Start date Start date
D

David C. Holley

I'm trying to build a sub in VBA to automatically create a mailItem.
Here is the line that attaches a previously created file...

newMailAttachments.Add file2, olByValue, 1, "Remittance Advice"

When the mailItem displays, the DisplayName appears to have been
ignored. The attachements are displayed as the file name. What exactly
does the DisplayName property refer to? Does it make a difference if I'm
sending the mailItem as text or HTML?

FYI - The VBA sub runs from within Access.

David H
 
Hi David,

in OL2k that works but was changed in OL XP or 2003 for security
reasons.
 
Well you know it would have been (*$&(@*#& nice if MS had updated the
HELP file and object reference information!
 
Back
Top